Commit d14272ab68

Jacob G-W <jacoblevgw@gmail.com>
2021-06-21 20:22:01
std: fix code unblocked by previous commit
1 parent a04a98f
Changed files (1)
lib/std/linked_list.zig
@@ -63,7 +63,7 @@ pub fn SinglyLinkedList(comptime T: type) type {
             pub fn countChildren(node: *const Node) usize {
                 var count: usize = 0;
                 var it: ?*const Node = node.next;
-                while (it) |_| : (it = n.next) {
+                while (it) |n| : (it = n.next) {
                     count += 1;
                 }
                 return count;