Skip to content

Commit

Permalink
chore: fix typo signal
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Mar 20, 2024
1 parent d28b329 commit 12e3909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lang/channel/singal.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Signal interface {

type SignalOption func(c *sigal)

func WithSinalTimeout(timeout time.Duration) SignalOption {
func WithSignalTimeout(timeout time.Duration) SignalOption {
return func(s *sigal) {
s.timeout = timeout
}
Expand Down
2 changes: 1 addition & 1 deletion lang/channel/singal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestSignal(t *testing.T) {
}

func TestSignalTimeout(t *testing.T) {
sg := NewSignal(WithSinalTimeout(time.Millisecond * 200))
sg := NewSignal(WithSignalTimeout(time.Millisecond * 200))
go func() {
time.Sleep(time.Millisecond * 500)
sg.Signal()
Expand Down

0 comments on commit 12e3909

Please sign in to comment.