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

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

View file

@ -68,7 +68,7 @@ written as:
assert i < x.len assert i < x.len
x.data[i] 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 assert i < x.len
x.data[i] = y x.data[i] = y