Make Empty(T).next take pointer rather than value to self

This commit is contained in:
Luuk Machielse 2025-12-09 16:50:06 +01:00
parent 21638848c5
commit ff1d6b8734

View file

@ -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;
}