aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytes/reader.go')
-rw-r--r--src/bytes/reader.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bytes/reader.go b/src/bytes/reader.go
index 5946cf9780..81c22aa029 100644
--- a/src/bytes/reader.go
+++ b/src/bytes/reader.go
@@ -32,8 +32,7 @@ func (r *Reader) Len() int {
// Size returns the original length of the underlying byte slice.
// Size is the number of bytes available for reading via ReadAt.
-// The returned value is always the same and is not affected by calls
-// to any other method.
+// The result is unaffected by any method calls except Reset.
func (r *Reader) Size() int64 { return int64(len(r.s)) }
// Read implements the io.Reader interface.