authorgravatar for jacoblevgw@gmail.comJacob G-W <jacoblevgw@gmail.com> 2021-06-21 14:22:01-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-06-21 17:03:03-07:00
logd14272ab68431b26d85bf041cc4bbb707503af44
tree36eb8f9392802759dbd99ddcb5156348bc510309
parenta04a98ff3e800136f624d97e315304f515376035

std: fix code unblocked by previous commit


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/linked_list.zig+1-1
...@@ -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;