Skip to content

Commit

Permalink
Fix typo in Must docs (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Pastro committed Jun 9, 2022
1 parent e06e09a commit 88a8b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
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 88a8b01

Please sign in to comment.