mat: clarify that prefix is only added after the first line

This commit is contained in:
Dan Kortschak
2020-07-16 08:37:28 +09:30
parent 9178f9e6ec
commit f69c0ac28e

View File

@@ -36,7 +36,7 @@ type formatter struct {
type FormatOption func(*formatter)
// Prefix sets the formatted prefix to the string p. Prefix is a string that is prepended to
// each line of output.
// each line of output after the first line.
func Prefix(p string) FormatOption {
return func(f *formatter) { f.prefix = p }
}