Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
planetis-m committed Apr 18, 2024
1 parent 035f6e2 commit d0a3a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ for k, v in pairs(x, JsonPtr"/d", JsonTree): echo (k, v), " "
var y = parseJson("""{"b":5,"a":1,"b":{"d":4,"c":2,"d":3}}""").sorted
deduplicate(y)
# {"a": 1, "b": {"c": 2, "d": 3}}
echo hash(y) # -8015265616443833839
echo hash(y) # -3485509795705892506
```

Expand Down
2 changes: 1 addition & 1 deletion tests/texample.nim
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ for k, v in pairs(x, JsonPtr"/d", JsonTree): echo (k, v), " "
var y = parseJson("""{"b":5,"a":1,"b":{"d":4,"c":2,"d":3}}""").sorted
deduplicate(y)
assert y == SortedJsonTree(%*{"a": 1, "b": {"c": 2, "d": 3}})
echo hash(y) # -8015265616443833839
echo hash(y) # -3485509795705892506

0 comments on commit d0a3a6b

Please sign in to comment.