diff --git a/examples/observer/observer.go b/examples/observer/observer.go index 11a062e..188e41a 100644 --- a/examples/observer/observer.go +++ b/examples/observer/observer.go @@ -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) {