aboutsummaryrefslogtreecommitdiff
path: root/src/bytes
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2015-07-02 17:56:13 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2016-02-21 03:57:24 +0000
commitde6a5881bbf85113186d9cfdbe51fd3165ba7e4c (patch)
tree8666972f7dffaea8c28b7a94cd87ed65885c1086 /src/bytes
parent92b74d0940cd46e3a480137844d9d61986f7d895 (diff)
downloadgo-de6a5881bbf85113186d9cfdbe51fd3165ba7e4c.tar.xz
bytes: make Buffer comment more accurate
Change-Id: Ief22b3dbba9616dd40bf3ea8e2633d3c5e7d1886 Reviewed-on: https://go-review.googlesource.com/19761 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/bytes')
-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 ddaba3bff3..f135b46959 100644
--- a/src/bytes/buffer.go
+++ b/src/bytes/buffer.go
@@ -17,7 +17,7 @@ import (
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 WriteByte or Rune
+ 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.
lastRead readOp // last read operation, so that Unread* can work correctly.
}