1
0
mirror of https://github.com/golang/go synced 2024-11-24 05:40:15 -07:00

io: fix comment in test

Updates #16795

Change-Id: I0bcc34bb5a92a2c480aebfb0eb6ba57bcc7f7cfd
Reviewed-on: https://go-review.googlesource.com/27551
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Brad Fitzpatrick 2016-08-22 22:22:44 +00:00
parent a1dc9465a1
commit e8ba80fbf6

View File

@ -211,7 +211,7 @@ func (b byteAndEOFReader) Read(p []byte) (n int, err error) {
return 1, EOF return 1, EOF
} }
// In Go 1.7, this yielded bytes forever. // This used to yield bytes forever; issue 16795.
func TestMultiReaderSingleByteWithEOF(t *testing.T) { func TestMultiReaderSingleByteWithEOF(t *testing.T) {
got, err := ioutil.ReadAll(LimitReader(MultiReader(byteAndEOFReader('a'), byteAndEOFReader('b')), 10)) got, err := ioutil.ReadAll(LimitReader(MultiReader(byteAndEOFReader('a'), byteAndEOFReader('b')), 10))
if err != nil { if err != nil {