go/src/io
Joe Tsai b986e478d4 io: simplify documentation for ByteReader
Let C be whether c valid
Let E be whether err is non-nil

The old comment explicitly says that (~C → E). However, that does call
into question whether (E → ~C), which causes doubts for users.
Without a comment at all, it is obvious that only (E ↔ ~C) makes sense.

Fixes #11308

Change-Id: I5a7d51ceb509057eccca91f57a7e48c9d1c6d112
Reviewed-on: https://go-review.googlesource.com/15256
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-10-06 02:21:29 +00:00
..
ioutil io/ioutil: clarify docs for ReadDir sort order. 2015-09-01 03:22:13 +00:00
io.go io: simplify documentation for ByteReader 2015-10-06 02:21:29 +00:00
io_test.go io: add CopyBuffer, a version of Copy in which the user provides a buffer 2015-04-15 15:59:16 +00:00
multi.go io: add WriteString support to MultiWriter 2015-09-01 04:00:12 +00:00
multi_test.go io: add WriteString support to MultiWriter 2015-09-01 04:00:12 +00:00
pipe.go io: clarify the behavior of PipeWriter.CloseWithError(nil). 2015-03-30 09:43:11 +00:00
pipe_test.go