summaryrefslogtreecommitdiff
path: root/libgo/go/exp/html/parse_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/exp/html/parse_test.go')
-rw-r--r--libgo/go/exp/html/parse_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/exp/html/parse_test.go b/libgo/go/exp/html/parse_test.go
index 1528dffaafa..f3f966cf58e 100644
--- a/libgo/go/exp/html/parse_test.go
+++ b/libgo/go/exp/html/parse_test.go
@@ -159,9 +159,9 @@ func dump(n *Node) (string, error) {
if n == nil || len(n.Child) == 0 {
return "", nil
}
- b := bytes.NewBuffer(nil)
+ var b bytes.Buffer
for _, child := range n.Child {
- if err := dumpLevel(b, child, 0); err != nil {
+ if err := dumpLevel(&b, child, 0); err != nil {
return "", err
}
}