summaryrefslogtreecommitdiff
path: root/libgo/go/testing/example.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/testing/example.go')
-rw-r--r--libgo/go/testing/example.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/go/testing/example.go b/libgo/go/testing/example.go
index b9955500e66..f4beb76f5f0 100644
--- a/libgo/go/testing/example.go
+++ b/libgo/go/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 {