diff options
| author | Péter Surányi <speter.go1@gmail.com> | 2015-02-02 21:37:52 +0900 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2015-04-08 13:39:33 +0000 |
| commit | a814c05ebac9409caed705900c8c06c09e36cba2 (patch) | |
| tree | b5e6c4dfcb13a48fbb73129bb921ccfccf28d55b /src/database/sql/sql.go | |
| parent | 8ac129e5304c6d16b4562c3f13437765d7c8a184 (diff) | |
| download | go-a814c05ebac9409caed705900c8c06c09e36cba2.tar.xz | |
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>
Diffstat (limited to 'src/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions
