feat: things

This commit is contained in:
2025-05-23 13:33:10 +02:00
parent cbeed4003a
commit 33d8306f22
9 changed files with 59 additions and 43 deletions

View File

@@ -18,7 +18,7 @@ pub fn Observable(T: type) type {
}
pub fn detach(self: *Self, obs: *const Observer(T)) void {
if (std.mem.indexOfScalar(*const Observer, self.observers.items, obs)) |index| {
if (std.mem.indexOfScalar(*const Observer(T), self.observers.items, obs)) |index| {
_ = self.observers.swapRemove(index);
}
}