]> Cypherpunks repositories - gostls13.git/commit
encoding/binary: document that Read returns io.EOF iff zero bytes are read
authorJoe Tsai <joetsai@digital-static.net>
Wed, 30 Sep 2015 20:35:03 +0000 (13:35 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 30 Sep 2015 22:10:44 +0000 (22:10 +0000)
commitb72a4a07c257f394f5a96dff29a4fc862601a41f
tree6579657426318980ebc3d3276d2b3ab151a1bc30
parente01be84149b8189a58815ab75a86984e58d203e2
encoding/binary: document that Read returns io.EOF iff zero bytes are read

Also add a unit test to lock this behavior into the API.

Fixes #12016

Change-Id: Ib6ec6e7948f0705f3504ede9143b5dc4e790fc44
Reviewed-on: https://go-review.googlesource.com/15171
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/binary/binary.go
src/encoding/binary/binary_test.go