Skip to content

Commit a1addf1

Browse files
nogoegstbradfitz
authored andcommitted
bufio: make Reader naming consistent
All the readers are denoted as `b` while for `Reader.Size()` it is `r`. Change-Id: Ib6f97306c11b3abb2ff30edbc9f9362cad36d080 GitHub-Last-Rev: 992f88b GitHub-Pull-Request: #26205 Reviewed-on: https://go-review.googlesource.com/122156 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent c9b0189 commit a1addf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bufio/bufio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func NewReader(rd io.Reader) *Reader {
6363
}
6464

6565
// Size returns the size of the underlying buffer in bytes.
66-
func (r *Reader) Size() int { return len(r.buf) }
66+
func (b *Reader) Size() int { return len(b.buf) }
6767

6868
// Reset discards any buffered data, resets all state, and switches
6969
// the buffered reader to read from r.

0 commit comments

Comments
 (0)