]> Cypherpunks.ru repositories - gostls13.git/commitdiff
bufio: clarify that Flush returns a cached write error
authorIan Lance Taylor <iant@golang.org>
Thu, 20 Apr 2017 23:26:58 +0000 (16:26 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 21 Apr 2017 00:48:51 +0000 (00:48 +0000)
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>
src/bufio/bufio.go

index e1e8fb2272076e7f29550e8dc1b23e345471a55f..936854b24f35ea6c176c86b74f697b588f9ab708 100644 (file)
@@ -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.