Merge pull request #237 from ryanfaerman/patch-1

Fixes typo in WithField documentation
This commit is contained in:
Simon Eskildsen 2015-08-23 13:59:52 -04:00
commit 44512f0d08
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func New() *Logger {
// Adds a field to the log entry, note that you it doesn't log until you call // Adds a field to the log entry, note that you it doesn't log until you call
// Debug, Print, Info, Warn, Fatal or Panic. It only creates a log entry. // Debug, Print, Info, Warn, Fatal or Panic. It only creates a log entry.
// Ff you want multiple fields, use `WithFields`. // If you want multiple fields, use `WithFields`.
func (logger *Logger) WithField(key string, value interface{}) *Entry { func (logger *Logger) WithField(key string, value interface{}) *Entry {
return NewEntry(logger).WithField(key, value) return NewEntry(logger).WithField(key, value)
} }