rb: fix rb.Node.getLast() that never worked

master
Shawn Landden 2020-01-30 21:01:51 +04:00 committed by Andrew Kelley
parent 14d9582e9a
commit cbd42e44d6
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ pub const Node = struct {
return node;
}
fn getLast(node: *Node) *Node {
fn getLast(nodeconst: *Node) *Node {
var node = nodeconst;
while (node.right) |right| {
node = right;
}