summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2022-07-14 18:42:56 +0800
committerGitHub <noreply@github.com>2022-07-14 18:42:56 +0800
commit10c8e2037db9ec3dc53fdaf1cc27e837e204af76 (patch)
tree3b9a6f00af7d143cb22c76fad166aa064529a961
parent93211a2bddf8e6a806c3fd4e9322ca21f0a2a9c4 (diff)
downloadNim-10c8e2037db9ec3dc53fdaf1cc27e837e204af76.tar.gz
fixes #20015; document `shallowCopy` does a deep copy with ARC/ORC (#20025)
-rw-r--r--lib/system.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 4080fee06..6e8519cf6 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -473,6 +473,8 @@ proc shallowCopy*[T](x: var T, y: T) {.noSideEffect, magic: "ShallowCopy".}
   ## Be careful with the changed semantics though!
   ## There is a reason why the default assignment does a deep copy of sequences
   ## and strings.
+  ##
+  ## .. warning:: `shallowCopy` does a deep copy with ARC/ORC.
 
 # :array|openArray|string|seq|cstring|tuple
 proc `[]`*[I: Ordinal;T](a: T; i: I): T {.