| ... | @@ -63,7 +63,7 @@ pub fn SinglyLinkedList(comptime T: type) type { | ... | @@ -63,7 +63,7 @@ pub fn SinglyLinkedList(comptime T: type) type { |
| 63 | pub fn countChildren(node: *const Node) usize { | 63 | pub fn countChildren(node: *const Node) usize { |
| 64 | var count: usize = 0; | 64 | var count: usize = 0; |
| 65 | var it: ?*const Node = node.next; | 65 | var it: ?*const Node = node.next; |
| 66 | while (it) |_| : (it = n.next) { | 66 | while (it) |n| : (it = n.next) { |
| 67 | count += 1; | 67 | count += 1; |
| 68 | } | 68 | } |
| 69 | return count; | 69 | return count; |