Skip to content

Commit

Permalink
Functional Options: Fix typo in loggerOption (#82)
Browse files Browse the repository at this point in the history
`opts.Logger = l.Log` should be `opts.logger = l.Log`.
  • Loading branch information
abhinav committed Jan 12, 2020
2 parents d61205f + e4c7550 commit 79c56d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion style.md
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@ type loggerOption struct {
}

func (l loggerOption) apply(opts *options) {
opts.Logger = l.Log
opts.logger = l.Log
}

func WithLogger(log *zap.Logger) Option {
Expand Down

0 comments on commit 79c56d7

Please sign in to comment.