mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
rb: fix rb.Node.getLast() that never worked
This commit is contained in:
parent
14d9582e9a
commit
cbd42e44d6
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user