update std lib and compiler sources to new for loop syntax

This commit is contained in:
Andrew Kelley
2023-02-18 09:02:57 -07:00
parent f0530385b5
commit aeaef8c0ff
216 changed files with 938 additions and 938 deletions

View File

@@ -430,7 +430,7 @@ pub fn PriorityDequeue(comptime T: type, comptime Context: type, comptime compar
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});
}