From f0530385b57218ef323747bdb7438330a07d25cc Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 17 Feb 2023 20:23:33 -0700 Subject: update existing behavior tests and std lib to new for loop semantics --- test/behavior/array.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/behavior/array.zig') diff --git a/test/behavior/array.zig b/test/behavior/array.zig index 012e078531..a5ecd6f115 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -185,7 +185,7 @@ test "nested arrays of strings" { if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO const array_of_strings = [_][]const u8{ "hello", "this", "is", "my", "thing" }; - for (array_of_strings) |s, i| { + for (array_of_strings, 0..) |s, i| { if (i == 0) try expect(mem.eql(u8, s, "hello")); if (i == 1) try expect(mem.eql(u8, s, "this")); if (i == 2) try expect(mem.eql(u8, s, "is")); -- cgit v1.2.3