Skip to content

Commit

Permalink
fix comment on GetState
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Sep 30, 2024
1 parent 9debdd0 commit 8ba0d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8ba0d01

Please sign in to comment.