@@ -253,7 +253,7 @@ func (f Formatter) flatten(buf *bytes.Buffer, kvList []interface{}, continuing b
253253 buf .WriteByte (',' )
254254 } else {
255255 // In theory the format could be something we don't understand. In
256- // practice, we control it, so it won't
256+ // practice, we control it, so it won't be.
257257 buf .WriteByte (' ' )
258258 }
259259 }
@@ -520,8 +520,8 @@ func (f Formatter) GetDepth() int {
520520 return f .depth
521521}
522522
523- // FormatInfo flattens an Info log message into strings.
524- // The prefix will be empty when no names were set, or when the output is
523+ // FormatInfo renders an Info log message into strings. The prefix will be
524+ // empty when no names were set (via AddNames) , or when the output is
525525// configured for JSON.
526526func (f Formatter ) FormatInfo (level int , msg string , kvList []interface {}) (prefix , argsStr string ) {
527527 args := make ([]interface {}, 0 , 64 ) // using a constant here impacts perf
@@ -540,8 +540,8 @@ func (f Formatter) FormatInfo(level int, msg string, kvList []interface{}) (pref
540540 return prefix , f .render (args , kvList )
541541}
542542
543- // FormatError flattens an Error log message into strings.
544- // The prefix will be empty when no names were set, or when the output is
543+ // FormatError renders an Error log message into strings. The prefix will be
544+ // empty when no names were set (via AddNames) , or when the output is
545545// configured for JSON.
546546func (f Formatter ) FormatError (err error , msg string , kvList []interface {}) (prefix , argsStr string ) {
547547 args := make ([]interface {}, 0 , 64 ) // using a constant here impacts perf
0 commit comments