]> Cypherpunks repositories - gostls13.git/commit
io: document that ReadAtLeast and ReadFull can drop errors
authorAgniva De Sarker <agnivade@yahoo.co.in>
Sun, 25 Mar 2018 18:57:22 +0000 (00:27 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 26 Mar 2018 17:38:36 +0000 (17:38 +0000)
commit665af046c29eafd35460e985a10ce74b1d9d3ef8
treefa2c513acca54072b4d56858b03b16b9d1e94c0b
parent68a1c9c4004c77ad12ecdc8dd54b11f280797e0a
io: document that ReadAtLeast and ReadFull can drop errors

Add a note that if an error is returned after having read
at least the minimum no. of bytes, the error is set to nil.

Fixes #20477

Change-Id: I75ba5ee967be3ff80249e40d459da4afeeb53463
Reviewed-on: https://go-review.googlesource.com/102459
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/io/io.go