mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
std: fix code unblocked by previous commit
This commit is contained in:
parent
a04a98ff3e
commit
d14272ab68
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user