Commit a1addf15 authored by nogoegst's avatar nogoegst Committed by Brad Fitzpatrick

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: 992f88b374b5a309303b7fa1622ee629d0fb741b
GitHub-Pull-Request: golang/go#26205
Reviewed-on: https://go-review.googlesource.com/122156Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent c9b01891
......@@ -63,7 +63,7 @@ func NewReader(rd io.Reader) *Reader {
}
// Size returns the size of the underlying buffer in bytes.
func (r *Reader) Size() int { return len(r.buf) }
func (b *Reader) Size() int { return len(b.buf) }
// Reset discards any buffered data, resets all state, and switches
// the buffered reader to read from r.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment