std: fix code unblocked by previous commit

This commit is contained in:
Jacob G-W 2021-06-21 14:22:01 -04:00 committed by Andrew Kelley
parent a04a98ff3e
commit d14272ab68

View File

@ -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;