aboutsummaryrefslogtreecommitdiff
path: root/src/bufio
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-11-26 11:45:50 -0500
committerBrad Fitzpatrick <bradfitz@golang.org>2015-12-01 20:05:25 +0000
commit829425d3ce34615726de2c91725c891393370879 (patch)
tree684e9b7aefb3a4078f68c3dfac3abddbf397becd /src/bufio
parent46300a058dfb078164f29fa1a86a2dbdad55e503 (diff)
downloadgo-829425d3ce34615726de2c91725c891393370879.tar.gz
go-829425d3ce34615726de2c91725c891393370879.zip
bufio: clarify Read docs
Or at least make them true. Fixes #12237. Change-Id: I3c92a07233b2174c5731d6fa7fbb9ca3a97beb6b Reviewed-on: https://go-review.googlesource.com/17237 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 3bbb933df3..6a70f7034d 100644
--- a/src/bufio/bufio.go
+++ b/src/bufio/bufio.go
@@ -179,7 +179,7 @@ func (b *Reader) Discard(n int) (discarded int, err error) {
// Read reads data into p.
// It returns the number of bytes read into p.
-// It calls Read at most once on the underlying Reader,
+// The bytes are taken from at most one Read on the underlying Reader,
// hence n may be less than len(p).
// At EOF, the count will be zero and err will be io.EOF.
func (b *Reader) Read(p []byte) (n int, err error) {