go/src/bufio
djherbis 14bf9c8c07 bufio: Reader.Peek returns partial results on ErrBufferFull
The existing implementation returns nil, ErrBufferFull when n > len(b.buf),
now it will return any data in the buffer and ErrBufferFull.

Fixes #14121

Change-Id: Ie52d32ccd80e4078ebfae6e75393c89675959ead
Reviewed-on: https://go-review.googlesource.com/19091
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-03-04 03:51:22 +00:00
..
bufio.go bufio: Reader.Peek returns partial results on ErrBufferFull 2016-03-04 03:51:22 +00:00
bufio_test.go bufio: Reader.Peek returns partial results on ErrBufferFull 2016-03-04 03:51:22 +00:00
example_test.go bufio: fix scanning with a final empty token. 2015-09-25 21:46:13 +00:00
export_test.go
scan.go bufio: fix scanning with a final empty token. 2015-09-25 21:46:13 +00:00
scan_test.go all: fix typos and spelling 2016-02-24 18:42:29 +00:00