feat: things
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user