mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-27 00:51:39 +00:00
since nobody knows about =dispose, rename the existing proc to deallocRef which is a much better name anyway
This commit is contained in:
@@ -57,7 +57,7 @@ proc `=destroy`(t: var Tree) {.nodestroy.} =
|
||||
let x = s.pop
|
||||
if x.left != nil: s.add(x.left)
|
||||
if x.right != nil: s.add(x.right)
|
||||
`=disposeHidden`(x)
|
||||
deallocRef(x)
|
||||
`=destroy`(s)
|
||||
|
||||
proc hasValue(self: var Tree, x: int32): bool =
|
||||
|
||||
Reference in New Issue
Block a user