diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-05-11 19:38:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 19:38:27 +0800 |
commit | 3b9999b93c35ff3e61b0a9848fdeb23083c89eb3 (patch) | |
tree | 8dfbca16eef724d6d276e977fc8d45b833d43449 /tests | |
parent | fa5e7dc44aaf0060bd72e2555c40b90bb9138730 (diff) | |
download | Nim-3b9999b93c35ff3e61b0a9848fdeb23083c89eb3.tar.gz |
adds documentation for `=wasMoved` and `=dup` hooks and small fixes (#21827)
* adds documentation for `=wasMoved` and `=dup` hooks and small fixes * Update doc/destructors.md * Update doc/destructors.md --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/arc/tdup.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/arc/tdup.nim b/tests/arc/tdup.nim index 3f64061fb..b77f5c6eb 100644 --- a/tests/arc/tdup.nim +++ b/tests/arc/tdup.nim @@ -40,7 +40,7 @@ proc inc(x: sink Ref) = proc inc(x: sink RefCustom) = inc x.id[] -proc `=dup`(x: var RefCustom): RefCustom = +proc `=dup`(x: RefCustom): RefCustom = result.id = x.id proc foo = |