]> Cypherpunks repositories - gostls13.git/commit
io: simplify documentation for ByteReader
authorJoe Tsai <joetsai@digital-static.net>
Thu, 1 Oct 2015 22:21:40 +0000 (15:21 -0700)
committerAndrew Gerrand <adg@golang.org>
Tue, 6 Oct 2015 02:21:29 +0000 (02:21 +0000)
commitb986e478d4cf97d36418a22821582aae81460cf7
treebd4224790654e700fa1b72f9690e66cd04695b31
parentdbc7203d22e782275c1cad6840b235a0bcf83288
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>
src/io/io.go