mirror of
https://codeberg.org/kaasboteram/zig-iterating.git
synced 2025-12-15 09:43:14 +01:00
Make Empty(T).next take pointer rather than value to self
This commit is contained in:
parent
21638848c5
commit
ff1d6b8734
1 changed files with 1 additions and 1 deletions
|
|
@ -430,7 +430,7 @@ pub fn Empty(comptime T: type) type {
|
|||
return struct {
|
||||
pub const Item = T;
|
||||
|
||||
pub fn next(_: Empty(T)) ?Item {
|
||||
pub fn next(_: *Empty(T)) ?Item {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue