From 7c4fce782005d5009146264c6257d5d10d3ca813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Can=20K=C3=BC=C3=A7=C3=BCkaslan?= <32893303+Kucukaslan@users.noreply.github.com> Date: Sat, 23 Jul 2022 23:01:02 +0300 Subject: [PATCH] bytes: simplify the Reader.Size documentation based on the feedback given at https://go-review.googlesource.com/c/go/+/419237/comments/7d0b54f7_bc6df414. --- src/bytes/reader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bytes/reader.go b/src/bytes/reader.go index abc0da70d4..22af0fa656 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 will not change between calls -// unless the byte slice is changed by Reset. +// 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.