destructors.rst: added a missing 'var' to the motivating example

This commit is contained in:
Araq
2019-10-28 17:21:38 +01:00
parent e58c2d261c
commit 44b1ecc287

View File

@@ -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