From aeaef8c0ffadab4145fd002f2edd87a6db66ebd1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 18 Feb 2023 09:02:57 -0700 Subject: update std lib and compiler sources to new for loop syntax --- lib/std/priority_queue.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/priority_queue.zig') diff --git a/lib/std/priority_queue.zig b/lib/std/priority_queue.zig index 6e5e85a819..8925202c32 100644 --- a/lib/std/priority_queue.zig +++ b/lib/std/priority_queue.zig @@ -263,7 +263,7 @@ pub fn PriorityQueue(comptime T: type, comptime Context: type, comptime compareF const print = std.debug.print; print("{{ ", .{}); print("items: ", .{}); - for (self.items) |e, i| { + for (self.items, 0..) |e, i| { if (i >= self.len) break; print("{}, ", .{e}); } -- cgit v1.2.3