Changed x[i] to x.data[i] in 7th row of 1st snippet.

This commit is contained in:
sealmove 2019-06-08 17:53:56 +03:00
parent 1c6640643b
commit 9133b1e23c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ written as:
proc `=destroy`*[T](x: var myseq[T]) = proc `=destroy`*[T](x: var myseq[T]) =
if x.data != nil: if x.data != nil:
for i in 0..<x.len: `=destroy`(x[i]) for i in 0..<x.len: `=destroy`(x.data[i])
dealloc(x.data) dealloc(x.data)
x.data = nil x.data = nil