bytes: simplify the Reader.Size documentation

based on the feedback given at https://go-review.googlesource.com/c/go/+/419237/comments/7d0b54f7_bc6df414.
This commit is contained in:
Muhammed Can Küçükaslan 2022-07-23 23:01:02 +03:00 committed by GitHub
parent cc891c4cac
commit 7c4fce7820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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.