Fix typos

This commit is contained in:
Olivier Poitrey 2017-06-05 12:59:25 -07:00
parent 397b56dc9d
commit 7e8bba7e7f
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

2
log.go
View File

@ -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,