Skip to content

Commit

Permalink
Fix typo in Must docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Pastro committed Jun 9, 2022
1 parent e06e09a commit 9082137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func NewDevelopment(options ...Option) (*Logger, error) {
// and panics if the error is non-nil. It is intended for use in variable
// initialization such as:
//
// var logger := zap.Must(zap.NewProduction())
// var logger = zap.Must(zap.NewProduction())
func Must(logger *Logger, err error) *Logger {
if err != nil {
panic(err)
Expand Down

0 comments on commit 9082137

Please sign in to comment.