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:
Pouriya Jamshidi
2024-04-12 08:14:33 +02:00
committed by narimiran
parent b1bfba9a31
commit 4bf12a086d

View File

@@ -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)