From f42a74531aa3074ded3ee2cbef54b4c01b34e807 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Mon, 6 May 2024 22:46:24 -0700 Subject: [PATCH] fix typo --- transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transition.go b/transition.go index 6f95f8e..c5687ab 100644 --- a/transition.go +++ b/transition.go @@ -42,6 +42,6 @@ func (r *Transition) Subscribe(s Subscriber) { func (r *Transition) Notify(on Eventtype, source State, dest State) { for _, s := range r.subscriptions { - s.Notify(&EventMessage{On: On, Source: Source, Dest: Dest}) + s.Notify(&EventMessage{On: on, Source: source, Dest: dest}) } }