Commit cbd42e44d6

Shawn Landden <shawn@git.icu>
2020-01-30 18:01:51
rb: fix rb.Node.getLast() that never worked
1 parent 14d9582
Changed files (1)
lib
std
lib/std/rb.zig
@@ -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;
         }