diff --git a/app.go b/app.go index c81e03d78..fa6005d21 100644 --- a/app.go +++ b/app.go @@ -746,7 +746,7 @@ func (app *App) Done() <-chan os.Signal { // Wait returns a channel of [ShutdownSignal] to block on after starting the // application and function, similar to [App.Done], but with a minor difference: // if the app was shut down via [Shutdowner.Shutdown], -// the exit code (if provied via [ExitCode]) will be available +// the exit code (if provided via [ExitCode]) will be available // in the [ShutdownSignal] struct. // Otherwise, the signal that was received will be set. func (app *App) Wait() <-chan ShutdownSignal { diff --git a/app_test.go b/app_test.go index bf5e49bc8..613ab4d09 100644 --- a/app_test.go +++ b/app_test.go @@ -615,7 +615,7 @@ func TestPrivateProvideWithDecorators(t *testing.T) { } func TestWithLoggerErrorUseDefault(t *testing.T) { - // This test cannot be run in paralllel with the others because + // This test cannot be run in parallel with the others because // it hijacks stderr. // Temporarily hijack stderr and restore it after this test so diff --git a/internal/fxclock/clock_test.go b/internal/fxclock/clock_test.go index 52e433c62..0bb22de77 100644 --- a/internal/fxclock/clock_test.go +++ b/internal/fxclock/clock_test.go @@ -149,7 +149,7 @@ func TestMock_Sleep(t *testing.T) { // ok } - // Avance to the next millisecond, the Sleep should return. + // Advance to the next millisecond, the Sleep should return. clock.Add(1 * time.Millisecond) select { case <-ch: diff --git a/internal/lifecycle/lifecycle_test.go b/internal/lifecycle/lifecycle_test.go index 27519795b..faa885987 100644 --- a/internal/lifecycle/lifecycle_test.go +++ b/internal/lifecycle/lifecycle_test.go @@ -91,14 +91,14 @@ func TestLifecycleStart(t *testing.T) { return nil }, }) - // this event's starter fails, so the stopper shouldnt run + // this event's starter fails, so the stopper shouldn't run l.Append(Hook{ OnStart: func(context.Context) error { starterCount++ return err }, OnStop: func(context.Context) error { - t.Error("this stopper shouldnt run, since the starter in this event failed") + t.Error("this stopper shouldn't run, since the starter in this event failed") return nil }, })