diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 09:02:57 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 19:17:21 -0700 |
| commit | aeaef8c0ffadab4145fd002f2edd87a6db66ebd1 (patch) | |
| tree | e4c76c76173e5e72bc1947e1886662c4c6b2ba3c /lib/std/net | |
| parent | f0530385b57218ef323747bdb7438330a07d25cc (diff) | |
| download | zig-aeaef8c0ffadab4145fd002f2edd87a6db66ebd1.tar.gz zig-aeaef8c0ffadab4145fd002f2edd87a6db66ebd1.zip | |
update std lib and compiler sources to new for loop syntax
Diffstat (limited to 'lib/std/net')
| -rw-r--r-- | lib/std/net/test.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/net/test.zig b/lib/std/net/test.zig index f2946777bd..30a63d9e3d 100644 --- a/lib/std/net/test.zig +++ b/lib/std/net/test.zig @@ -30,7 +30,7 @@ test "parse and render IPv6 addresses" { "ff01::fb", "::ffff:123.5.123.5", }; - for (ips) |ip, i| { + for (ips, 0..) |ip, i| { var addr = net.Address.parseIp6(ip, 0) catch unreachable; var newIp = std.fmt.bufPrint(buffer[0..], "{}", .{addr}) catch unreachable; try std.testing.expect(std.mem.eql(u8, printed[i], newIp[1 .. newIp.len - 3])); |
