diff options
Diffstat (limited to 'src/testing/testing.go')
| -rw-r--r-- | src/testing/testing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go index 27d0de7728..7e936f0fca 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -376,7 +376,7 @@ func (c *common) decorate(s string) string { file = "???" line = 1 } - buf := new(bytes.Buffer) + buf := new(strings.Builder) // Every line is indented at least one tab. buf.WriteByte('\t') fmt.Fprintf(buf, "%s:%d: ", file, line) |
