Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobOaks committed Apr 19, 2024
1 parent 81d3ff8 commit 4626474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.go
Expand Up @@ -480,7 +480,7 @@ func New(opts ...Option) *App {
m.build(app, app.container)
}

// Provide Fx types first to increase the change a custom logger
// Provide Fx types first to increase the chance a custom logger
// can be successfully built in the face of unrelated DI failure.
// E.g., for a custom logger that relies on the Lifecycle type.
frames := fxreflect.CallerStack(0, 0) // include New in the stack for default Provides
Expand Down
2 changes: 1 addition & 1 deletion app_test.go
Expand Up @@ -113,7 +113,7 @@ func TestNewApp(t *testing.T) {
[]string{"Provided", "Provided", "Provided", "Provided", "LoggerInitialized", "Started"},
spy.EventTypes())

// Fx types get provided first to increase change of
// Fx types get provided first to increase chance of
// successful custom logger build.
assert.Contains(t, spy.Events()[0].(*fxevent.Provided).OutputTypeNames, "fx.Lifecycle")
assert.Contains(t, spy.Events()[1].(*fxevent.Provided).OutputTypeNames, "fx.Shutdowner")
Expand Down

0 comments on commit 4626474

Please sign in to comment.