Skip to content

Commit

Permalink
Fix mistake in %* macro (#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
planetis-m and Araq authored May 20, 2024
1 parent 780c0a3 commit f4014d1
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 f4014d1

Please sign in to comment.