From d14272ab68431b26d85bf041cc4bbb707503af44 Mon Sep 17 00:00:00 2001 From: Jacob G-W Date: Mon, 21 Jun 2021 14:22:01 -0400 Subject: [PATCH] std: fix code unblocked by previous commit --- lib/std/linked_list.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/linked_list.zig b/lib/std/linked_list.zig index fe984d66808f62583e0050b9626107c9b75f0328..7bab3e21886b094db209a4a28696a8b65ac9cc95 100644 --- a/lib/std/linked_list.zig +++ b/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; -- 2.54.0