mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Revert "bytes: document that Buffer values must not be copied"
This reverts commit b1177d390c.
Change-Id: Iffbd63d5993633143a81572b223e3c5dd2353206
Reviewed-on: https://go-review.googlesource.com/12581
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
ad84f84cb4
commit
02dd98e9e7
1 changed files with 0 additions and 1 deletions
|
|
@ -14,7 +14,6 @@ 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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue