diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-17 20:23:33 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 19:17:21 -0700 |
| commit | f0530385b57218ef323747bdb7438330a07d25cc (patch) | |
| tree | 07d87e78355e518aa67ea48e3cdf1a242917a5d7 /test/behavior/tuple.zig | |
| parent | 321ccbdc525ab0f5862e42378b962c10ec54e4a1 (diff) | |
| download | zig-f0530385b57218ef323747bdb7438330a07d25cc.tar.gz zig-f0530385b57218ef323747bdb7438330a07d25cc.zip | |
update existing behavior tests and std lib to new for loop semantics
Diffstat (limited to 'test/behavior/tuple.zig')
| -rw-r--r-- | test/behavior/tuple.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig index f1c15fb3e3..13b02b40e8 100644 --- a/test/behavior/tuple.zig +++ b/test/behavior/tuple.zig @@ -40,7 +40,7 @@ test "tuple multiplication" { { const t = .{ 1, 2, 3 } ** 4; try expect(@typeInfo(@TypeOf(t)).Struct.fields.len == 12); - inline for (t) |x, i| try expect(x == 1 + i % 3); + inline for (t, 0..) |x, i| try expect(x == 1 + i % 3); } } }; |
