fix deregister in observer example

This commit is contained in:
onyx-and-iris 2022-08-22 22:54:38 +01:00
parent 7744971a10
commit 3fd08ff606

View File

@ -16,7 +16,7 @@ func (o observer) Register() {
}
func (o observer) Deregister() {
o.vm.Register(o)
o.vm.Deregister(o)
}
func (o observer) OnUpdate(subject string) {