Skip to content

Commit

Permalink
Fix nim 2.0 error
Browse files Browse the repository at this point in the history
  • Loading branch information
oakes committed Sep 2, 2023
1 parent 5a25abb commit b3d88c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nimwave.nim
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ proc toSeq(nodes: tuple): seq[Node] =
when node is tuple:
result.add(toSeq(node))
elif node is string:
result.add(nw.Text(str: node))
result.add(Text(str: node))
elif node is seq[string]:
for s in node:
result.add(nw.Text(str: s))
result.add(Text(str: s))
else:
result.add(node)

Expand Down

0 comments on commit b3d88c0

Please sign in to comment.