Skip to content

Commit

Permalink
fix JSON deep copy description (#23495)
Browse files Browse the repository at this point in the history
Hi,

This is a tiny change, fixing the error in the documentation of JSON's
deep copy proc.
  • Loading branch information
pouriyajamshidi committed Apr 12, 2024
1 parent 779bc84 commit 1bd0955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/json.nim
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ proc delete*(obj: JsonNode, key: string) =
obj.fields.del(key)

proc copy*(p: JsonNode): JsonNode =
## Performs a deep copy of `a`.
## Performs a deep copy of `p`.
case p.kind
of JString:
result = newJString(p.str)
Expand Down

0 comments on commit 1bd0955

Please sign in to comment.