aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/buffer.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytes/buffer.go')
-rw-r--r--src/bytes/buffer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bytes/buffer.go b/src/bytes/buffer.go
index 4db93867d9..75dab13048 100644
--- a/src/bytes/buffer.go
+++ b/src/bytes/buffer.go
@@ -14,6 +14,7 @@ import (
// A Buffer is a variable-sized buffer of bytes with Read and Write methods.
// The zero value for Buffer is an empty buffer ready to use.
+// Buffer values must not be copied.
type Buffer struct {
buf []byte // contents are the bytes buf[off : len(buf)]
off int // read at &buf[off], write at &buf[len(buf)]