diff options
Diffstat (limited to 'src/testing/example.go')
| -rw-r--r-- | src/testing/example.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testing/example.go b/src/testing/example.go index b9955500e6..f4beb76f5f 100644 --- a/src/testing/example.go +++ b/src/testing/example.go @@ -5,7 +5,6 @@ package testing import ( - "bytes" "fmt" "io" "os" @@ -72,7 +71,7 @@ func runExample(eg InternalExample) (ok bool) { os.Stdout = w outC := make(chan string) go func() { - var buf bytes.Buffer + var buf strings.Builder _, err := io.Copy(&buf, r) r.Close() if err != nil { |
