update std lib and compiler sources to new for loop syntax
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user