diff --git a/event.go b/event.go index 12779b4..7d36175 100644 --- a/event.go +++ b/event.go @@ -15,7 +15,7 @@ var eventPool = &sync.Pool{ }, } -// Event represents a log event. It is instancied by one of the level method of +// Event represents a log event. It is instanced by one of the level method of // Logger and finalized by the Msg or Msgf method. type Event struct { buf []byte @@ -56,7 +56,7 @@ func (e *Event) Enabled() bool { // Msg sends the *Event with msg added as the message field if not empty. // -// NOTICE: once this methid is called, the *Event should be disposed. +// NOTICE: once this method is called, the *Event should be disposed. // Calling Msg twice can have unexpected result. func (e *Event) Msg(msg string) error { if !e.enabled { diff --git a/log.go b/log.go index 6bb0ef9..98fbe2c 100644 --- a/log.go +++ b/log.go @@ -172,7 +172,7 @@ func (l Logger) With() Context { return Context{l} } -// 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 (l Logger) Level(lvl Level) Logger { return Logger{ w: l.w,