summary refs log tree commit diff stats
path: root/doc/destructors.rst
diff options
context:
space:
mode:
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