From 8ba0d013c35f5e79e1f218297c9ce6f06a5906bb Mon Sep 17 00:00:00 2001 From: gucio321 Date: Mon, 30 Sep 2024 22:39:23 +0200 Subject: [PATCH] fix comment on GetState --- Context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Context.go b/Context.go index c7874fbc..d6dc9125 100644 --- a/Context.go +++ b/Context.go @@ -148,7 +148,7 @@ func (c *context) SetState(id string, data Disposable) { c.state.Store(id, &state{valid: true, data: data}) } -// Get state is a generic version of Context.GetState. +// GetState is a generic version of Context.GetState. func GetState[T any, PT genericDisposable[T]](c *context, id string) PT { if s, ok := c.load(id); ok { c.m.Lock()