Skip to content

Commit

Permalink
Fix mistake in %* macro (karaxnim#288)
Browse files Browse the repository at this point in the history
* Fix mistake in %* macro

* Update karax/jjson.nim

Co-authored-by: Andreas Rumpf <[email protected]>

---------

Co-authored-by: Andreas Rumpf <[email protected]>
  • Loading branch information
2 people authored and daylinmorgan committed Sep 14, 2024
1 parent 5314f82 commit ab109ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karax/jjson.nim
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ proc toJson(x: NimNode): NimNode {.compiletime.} =
for i in 0 ..< x.len:
x[i].expectKind nnkExprColonExpr
let key = x[i][0]
let a = if x[i].kind in {nnkIdent, nnkSym, nnkAccQuoted}:
let a = if key.kind in {nnkIdent, nnkSym, nnkAccQuoted}:
newLit($key)
else:
key
Expand Down

0 comments on commit ab109ee

Please sign in to comment.