summaryrefslogtreecommitdiff
path: root/src/bufio
diff options
context:
space:
mode:
authornogoegst <nogoegst@users.noreply.github.com>2018-07-03 19:49:52 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-08-20 21:51:48 +0000
commita1addf15df95418d86fc0d495bc9aa85590d5724 (patch)
treea6355bd7077b1544164135f8f2e7b596e9e422cb /src/bufio
parentc9b018918d461da758e448ac370c2df8c6f77ab3 (diff)
downloadgo-git-a1addf15df95418d86fc0d495bc9aa85590d5724.tar.gz
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/122156 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/bufio')
-rw-r--r--src/bufio/bufio.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bufio/bufio.go b/src/bufio/bufio.go
index 72545a7509..480e929f58 100644
--- a/src/bufio/bufio.go
+++ b/src/bufio/bufio.go
@@ -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.