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/atomic/queue.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/std/atomic/queue.zig') diff --git a/lib/std/atomic/queue.zig b/lib/std/atomic/queue.zig index 8100a9e26a..7c9ffa2684 100644 --- a/lib/std/atomic/queue.zig +++ b/lib/std/atomic/queue.zig @@ -212,11 +212,11 @@ test "std.atomic.Queue" { try expect(context.queue.isEmpty()); var putters: [put_thread_count]std.Thread = undefined; - for (putters) |*t| { + for (&putters) |*t| { t.* = try std.Thread.spawn(.{}, startPuts, .{&context}); } var getters: [put_thread_count]std.Thread = undefined; - for (getters) |*t| { + for (&getters) |*t| { t.* = try std.Thread.spawn(.{}, startGets, .{&context}); } -- cgit v1.2.3