summary refs log tree commit diff stats
path: root/doc/destructors.rst
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-26 07:13:01 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-27 14:01:28 +0200
commitc9c8fa99cc5342e4f6f16c2bcd306c64c6ac302b (patch)
treeb4e0bb639865fd8727a0ca3cab9b65018982621e /doc/destructors.rst
parentb9c15371a3278cafa962c09693d126ae388dca2b (diff)
downloadNim-c9c8fa99cc5342e4f6f16c2bcd306c64c6ac302b.tar.gz
destructors spec: be more precise about temporaries
Diffstat (limited to 'doc/destructors.rst')
-rw-r--r--doc/destructors.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/destructors.rst b/doc/destructors.rst
index a9e25f6ec..f17bdadf7 100644
--- a/doc/destructors.rst
+++ b/doc/destructors.rst
@@ -326,7 +326,9 @@ not destroyed at the scope exit, but at the proc exit.
 
   f(...)
   ------------------------    (function-call)
-  (let tmp = f(...); tmp)
+  (let tmp;
+  bitwiseCopy tmp, f(...);
+  tmp)
   finally: `=destroy`(tmp)