Skip to content

Commit 2aa5f4f

Browse files
committed
small iterator tweak
1 parent 3af0531 commit 2aa5f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iterator/iterator.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub const U32Iterator = struct {
2424
};
2525
}
2626

27-
self.index += 1;
27+
self.index = i + 1;
2828
return .{
2929
.value = i,
3030
.done = false,

0 commit comments

Comments
 (0)