Skip to content

Commit

Permalink
fixes #20015; document shallowCopy does a deep copy with ARC/ORC (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Jul 14, 2022
1 parent 93211a2 commit 10c8e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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 {.
Expand Down

0 comments on commit 10c8e20

Please sign in to comment.