]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "bytes: document that Buffer values must not be copied"
authorAlan Donovan <adonovan@google.com>
Thu, 23 Jul 2015 18:34:31 +0000 (18:34 +0000)
committerAlan Donovan <adonovan@google.com>
Thu, 23 Jul 2015 18:34:49 +0000 (18:34 +0000)
This reverts commit b1177d390cf0c3733836e5941f77b828e21c8a09.

Change-Id: Iffbd63d5993633143a81572b223e3c5dd2353206
Reviewed-on: https://go-review.googlesource.com/12581
Reviewed-by: Alan Donovan <adonovan@google.com>
src/bytes/buffer.go

index 75dab13048badb5bab582dc2044d183b3dc6faf9..4db93867d9aa890faed03430b8d9116714e4c9ea 100644 (file)
@@ -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)]