Fix typoes

This commit is contained in:
Olivier Poitrey 2018-02-10 18:57:53 -08:00
parent 7d8f9e5cf0
commit 9a92fd2536
3 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ func RefererHandler(fieldKey string) func(next http.Handler) http.Handler {
type idKey struct{} type idKey struct{}
// IDFromRequest returns the unique id accociated to the request if any. // IDFromRequest returns the unique id associated to the request if any.
func IDFromRequest(r *http.Request) (id xid.ID, ok bool) { func IDFromRequest(r *http.Request) (id xid.ID, ok bool) {
if r == nil { if r == nil {
return return

View File

@ -22,7 +22,7 @@ func With() zerolog.Context {
return Logger.With() return Logger.With()
} }
// Level crestes a child logger with the minium accepted level set to level. // Level creates a child logger with the minimum accepted level set to level.
func Level(level zerolog.Level) zerolog.Logger { func Level(level zerolog.Level) zerolog.Logger {
return Logger.Level(level) return Logger.Level(level)
} }
@ -89,7 +89,7 @@ func WithLevel(level zerolog.Level) *zerolog.Event {
} }
// Log starts a new message with no level. Setting zerolog.GlobalLevel to // Log starts a new message with no level. Setting zerolog.GlobalLevel to
// zerlog.Disabled will still disable events produced by this method. // zerolog.Disabled will still disable events produced by this method.
// //
// You must call Msg on the returned event in order to send the event. // You must call Msg on the returned event in order to send the event.
func Log() *zerolog.Event { func Log() *zerolog.Event {

View File

@ -102,7 +102,7 @@ func ExampleFatal() {
// This example uses command-line flags to demonstrate various outputs // This example uses command-line flags to demonstrate various outputs
// depending on the chosen log level. // depending on the chosen log level.
func ExampleLevelFlag() { func Example_LevelFlag() {
setup() setup()
debug := flag.Bool("debug", false, "sets log level to debug") debug := flag.Bool("debug", false, "sets log level to debug")