From 3fd08ff60678dc9397b65b45a8250222b12c49ba Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Mon, 22 Aug 2022 22:54:38 +0100 Subject: [PATCH] fix deregister in observer example --- examples/observer/observer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {