1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:54:41 -07:00
go/src/io
Péter Surányi a814c05eba io: clarify Copy docs regarding error handling
"returns ... the first error" was misleading or at least confusing:
in case a Read results in an error with non-zero bytes read, and the
subsequent Write also results in an error, the error from Write is
returned, which is the second one (in the temporal dimension).

Fixes #9744

Change-Id: If8925a701e4fae820cd9df7446503403fc0785d4
Reviewed-on: https://go-review.googlesource.com/3686
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-04-08 13:39:33 +00:00
..
ioutil
io_test.go io: clarify Copy docs regarding error handling 2015-04-08 13:39:33 +00:00
io.go io: clarify Copy docs regarding error handling 2015-04-08 13:39:33 +00:00
multi_test.go
multi.go
pipe_test.go
pipe.go io: clarify the behavior of PipeWriter.CloseWithError(nil). 2015-03-30 09:43:11 +00:00