]> Cypherpunks repositories - gostls13.git/commit
bufio: change ReadSlice to match description
authorRuss Cox <rsc@golang.org>
Wed, 2 Jun 2010 23:17:18 +0000 (16:17 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 2 Jun 2010 23:17:18 +0000 (16:17 -0700)
commit041d978d849c17750e054a169407e5fc9b2cc942
tree564dc54040105e3f88a32fbb70d62129c7a740dc
parent4fc97c4703a8fdaf05df5399bdb458a524aa6baf
bufio: change ReadSlice to match description

On error, ReadSlice is defined to return the available data
and advance past that data, but it was not behaving that
way for err == ErrBufferFull, making it harder for callers to
handle well.

R=r
CC=golang-dev
https://golang.org/cl/1480041
src/pkg/bufio/bufio.go
src/pkg/bufio/bufio_test.go