]> Cypherpunks repositories - gostls13.git/commit
bufio: suggest io.ReadFull at (*Reader).Read
authorAlan Donovan <adonovan@google.com>
Mon, 29 Oct 2018 17:49:32 +0000 (13:49 -0400)
committerAlan Donovan <adonovan@google.com>
Tue, 30 Oct 2018 13:03:46 +0000 (13:03 +0000)
commit891682c8250e53e62d5ffe027d5ab63d21f6cd5c
tree0983bb49f1fa15a19e38c2d5856795c76884f669
parent2e9f0817f070a3979afc580c740670690acab672
bufio: suggest io.ReadFull at (*Reader).Read

Many times when using bufio.Reader I imagine, incorrectly, that it
implements the retry loop itself, being a high-level buffered wrapper
around, say, a file descriptor prone to short reads. This comment
would have saved me much time.

Change-Id: I34c790e0d7c1515430a76d02ce4739b586a36ba7
Reviewed-on: https://go-review.googlesource.com/c/145577
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/bufio/bufio.go