Skip to content

Commit

Permalink
fix setAttr proc
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Aug 16, 2018
1 parent 9aeb587 commit 87f9a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xml.nim
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ proc attr*(node: XmlNode, name: string): string =
proc setAttr(node: XmlNode, name, value: string) =
if node.attributes.isNil:
node.attributes = newStringTable(modeCaseInsensitive)
node.attributes[name] = value
node.attributes[name] = value

proc parseNode(tokens: seq[XmlToken], start = 0): (XmlNode, int) =
var
Expand Down
2 changes: 1 addition & 1 deletion xml.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.1.0"
version = "0.1.1"
author = "Huy Doan"
description = "Pure Nim XML parser"
license = "MIT"
Expand Down

0 comments on commit 87f9a62

Please sign in to comment.