mirror of
https://codeberg.org/kaasboteram/zig-iterating.git
synced 2025-12-15 17:43:16 +01:00
Removed unnecessary optional unwrap in Iterator(T).zip unit test
This commit is contained in:
parent
1907a41fe5
commit
46b7999e10
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ pub fn Iterator(comptime Inner: type) type {
|
||||||
|
|
||||||
var it = Iter(i32).once(10).zip(Iter(i32).once(20));
|
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 {
|
pub fn toOwnedSlice(self: Self, allocator: std.mem.Allocator) ![]const Item {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue