Skip to content

Commit

Permalink
Update sugar.go
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Apr 8, 2022
1 parent 308dfc3 commit ee70d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sugar.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func (s *SugaredLogger) Named(name string) *SugaredLogger {
return &SugaredLogger{base: s.base.Named(name)}
}

// WithOptions clones the base Logger, applies the supplied Options, wraps
// the resulting Logger, and returns it. It's safe to use concurrently.
// WithOptions clones the current SugaredLogger, applies the supplied Options,
// and returns the result. It's safe to use concurrently.
func (s *SugaredLogger) WithOptions(opts ...Option) *SugaredLogger {
base := s.base.clone()
for _, opt := range opts {
Expand Down

0 comments on commit ee70d37

Please sign in to comment.