mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
fix JSON deep copy description (#23495)
Hi,
This is a tiny change, fixing the error in the documentation of JSON's
deep copy proc.
(cherry picked from commit 1bd0955218)
This commit is contained in:
committed by
narimiran
parent
b1bfba9a31
commit
4bf12a086d
@@ -628,7 +628,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)
|
||||
|
||||
Reference in New Issue
Block a user