Changed `=sink` to `=move`
This commit is contained in:
parent
9133b1e23c
commit
2235909337
|
@ -419,7 +419,7 @@ for expressions of type ``lent T`` or of type ``var T``.
|
|||
proc construct(kids: sink seq[Tree]): Tree =
|
||||
result = Tree(kids: kids)
|
||||
# converted into:
|
||||
`=sink`(result.kids, kids)
|
||||
`=move`(result.kids, kids)
|
||||
|
||||
proc `[]`*(x: Tree; i: int): lent Tree =
|
||||
result = x.kids[i]
|
||||
|
|
Loading…
Reference in New Issue