mirror of https://github.com/golang/go.git
bufio: make Reader variable naming consistent
All the readers there are denoted as `b` while for `Reader.Size()` it is `r`.
This commit is contained in:
parent
5d4f0474ec
commit
992f88b374
|
|
@ -63,7 +63,7 @@ func NewReader(rd io.Reader) *Reader {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Size returns the size of the underlying buffer in bytes.
|
// 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
|
// Reset discards any buffered data, resets all state, and switches
|
||||||
// the buffered reader to read from r.
|
// the buffered reader to read from r.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue