changes &x -> x[0:] for array to slice conversion
R=gri
CC=golang-dev
https://golang.org/cl/1326042
diff --git a/src/pkg/bytes/buffer.go b/src/pkg/bytes/buffer.go
index 7a996c4..32571d8 100644
--- a/src/pkg/bytes/buffer.go
+++ b/src/pkg/bytes/buffer.go
@@ -74,7 +74,7 @@
if len(b.buf)+n > cap(b.buf) {
var buf []byte
if b.buf == nil && n <= len(b.bootstrap) {
- buf = &b.bootstrap
+ buf = b.bootstrap[0:]
} else {
// not enough space anywhere
buf = make([]byte, 2*cap(b.buf)+n)
@@ -181,7 +181,7 @@
b.WriteByte(byte(r))
return 1, nil
}
- n = utf8.EncodeRune(r, &b.runeBytes)
+ n = utf8.EncodeRune(r, b.runeBytes[0:])
b.Write(b.runeBytes[0:n])
return n, nil
}