Changed `=sink` to `=move`

This commit is contained in:
sealmove 2019-06-09 00:00:40 +03:00
parent 9133b1e23c
commit 2235909337
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ for expressions of type ``lent T`` or of type ``var T``.
proc construct(kids: sink seq[Tree]): Tree = proc construct(kids: sink seq[Tree]): Tree =
result = Tree(kids: kids) result = Tree(kids: kids)
# converted into: # converted into:
`=sink`(result.kids, kids) `=move`(result.kids, kids)
proc `[]`*(x: Tree; i: int): lent Tree = proc `[]`*(x: Tree; i: int): lent Tree =
result = x.kids[i] result = x.kids[i]