aboutsummaryrefslogtreecommitdiff
path: root/src/bufio
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-04-20 16:26:58 -0700
committerIan Lance Taylor <iant@golang.org>2017-04-21 00:48:51 +0000
commit2094807913b38b7cee59c31c4a95de49070292bf (patch)
treeea43d68c0b3407b60c2e0eb641dd1ab42856e320 /src/bufio
parent963b6d1d0756e1805092a90856d4f1596b282cff (diff)
downloadgo-2094807913b38b7cee59c31c4a95de49070292bf.tar.gz
go-2094807913b38b7cee59c31c4a95de49070292bf.zip
bufio: clarify that Flush returns a cached write error
Change-Id: I377403fc0981d58aec5d84a1dd0d4e08532a575c Reviewed-on: https://go-review.googlesource.com/41291 Reviewed-by: Dan Peterson <dpiddy@gmail.com> 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 e1e8fb2272..936854b24f 100644
--- a/src/bufio/bufio.go
+++ b/src/bufio/bufio.go
@@ -513,7 +513,7 @@ func (b *Reader) writeBuf(w io.Writer) (int64, error) {
// Writer implements buffering for an io.Writer object.
// If an error occurs writing to a Writer, no more data will be
-// accepted and all subsequent writes will return the error.
+// accepted and all subsequent writes, and Flush, will return the error.
// After all data has been written, the client should call the
// Flush method to guarantee all data has been forwarded to
// the underlying io.Writer.