diff --git a/src/root.zig b/src/root.zig index 0a6bf63..c49c923 100644 --- a/src/root.zig +++ b/src/root.zig @@ -168,7 +168,7 @@ pub fn Iterator(comptime Inner: type) type { var it = Iter(i32).once(10).zip(Iter(i32).once(20)); - try testing.expectEqualDeep(struct { i32, i32 }{ 10, 20 }, it.next().?); + try testing.expectEqualDeep(.{ 10, 20 }, it.next()); } pub fn toOwnedSlice(self: Self, allocator: std.mem.Allocator) ![]const Item {