1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:41:21 -06:00
go/src/encoding/binary
Joe Tsai b72a4a07c2 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>
2015-09-30 22:10:44 +00:00
..
binary_test.go encoding/binary: document that Read returns io.EOF iff zero bytes are read 2015-09-30 22:10:44 +00:00
binary.go encoding/binary: document that Read returns io.EOF iff zero bytes are read 2015-09-30 22:10:44 +00:00
example_test.go
varint_test.go
varint.go