aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Möhrmann <martisch@uos.de>2016-03-10 12:05:44 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2016-03-10 15:54:08 +0000
commitac1608a2f96afdc372aeb9553c54347bcd4cb0b6 (patch)
tree8de46f3badb86ec546d4492cbf374c3ad6308613 /src
parent92dfc12610853d48b7a67912c771cd813371365f (diff)
downloadgo-ac1608a2f96afdc372aeb9553c54347bcd4cb0b6.tar.xz
bytes: correct comment about usage of bytes.Buffer by Printf
The fmt package does not use bytes.Buffer anymore as an internal buffer. Change-Id: I34c7a52506290ccbcb10ea2e85dea49a0a8b8203 Reviewed-on: https://go-review.googlesource.com/20511 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/bytes/buffer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes/buffer.go b/src/bytes/buffer.go
index 992a9585e7..9154a1b954 100644
--- a/src/bytes/buffer.go
+++ b/src/bytes/buffer.go
@@ -18,7 +18,7 @@ type Buffer struct {
buf []byte // contents are the bytes buf[off : len(buf)]
off int // read at &buf[off], write at &buf[len(buf)]
runeBytes [utf8.UTFMax]byte // avoid allocation of slice on each call to WriteRune
- bootstrap [64]byte // memory to hold first slice; helps small buffers (Printf) avoid allocation.
+ bootstrap [64]byte // memory to hold first slice; helps small buffers avoid allocation.
lastRead readOp // last read operation, so that Unread* can work correctly.
}