Merge pull request #32 from menduz/patch-1

fix: add missing comptime
master
prime31 1 year ago committed by GitHub
commit d49c58c314

@ -322,7 +322,7 @@ pub const Registry = struct {
} }
/// shortcut for add-or-replace raw comptime_int/float without having to @as cast /// shortcut for add-or-replace raw comptime_int/float without having to @as cast
pub fn addOrReplaceTyped(self: *Registry, T: type, entity: Entity, value: T) void { pub fn addOrReplaceTyped(self: *Registry, comptime T: type, entity: Entity, value: T) void {
self.addOrReplace(entity, value); self.addOrReplace(entity, value);
} }

Loading…
Cancel
Save