summary refs log tree commit diff stats
path: root/doc/destructors.rst
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-10-28 17:21:38 +0100
committerAraq <rumpf_a@web.de>2019-10-28 18:15:17 +0100
commit44b1ecc287fec603a9f24995ce6401ad0d109c55 (patch)
tree95cb3b8c443c9b19b92f27bfb4e0696aa9f5fd51 /doc/destructors.rst
parente58c2d261c65cf3dd4d3f92a8a4642a24a554f64 (diff)
downloadNim-44b1ecc287fec603a9f24995ce6401ad0d109c55.tar.gz
destructors.rst: added a missing 'var' to the motivating example
Diffstat (limited to 'doc/destructors.rst')
-rw-r--r--doc/destructors.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/destructors.rst b/doc/destructors.rst
index a48799427..5877b53c3 100644
--- a/doc/destructors.rst
+++ b/doc/destructors.rst
@@ -68,7 +68,7 @@ written as:
     assert i < x.len
     x.data[i]
 
-  proc `[]=`*[T](x: myseq[T]; i: Natural; y: sink T) =
+  proc `[]=`*[T](x: var myseq[T]; i: Natural; y: sink T) =
     assert i < x.len
     x.data[i] = y