Skip to content

Commit

Permalink
Fix GoDoc references to Printf (uber-go#587)
Browse files Browse the repository at this point in the history
The GoDoc suggests that there's a `Printf` method on the `SugaredLogger`, which isn't the case. Replace with `Infof`.
  • Loading branch information
nfarah86 authored and akshayjshah committed May 2, 2018
1 parent eeedf31 commit d46d7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// "attempt", 3,
// "backoff", time.Second,
// )
// sugar.Printf("failed to fetch URL: %s", "http://example.com")
// sugar.Infof("failed to fetch URL: %s", "http://example.com")
//
// By default, loggers are unbuffered. However, since zap's low-level APIs
// allow buffering, calling Sync before letting your process exit is a good
Expand Down

0 comments on commit d46d7a7

Please sign in to comment.