1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:14:43 -07:00

bufio: minor documentation fix.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2301045
This commit is contained in:
Stephen Ma 2010-10-06 19:39:30 +11:00
parent 454f03ff0b
commit 5043f0a1ad

View File

@ -284,7 +284,7 @@ func (b *Reader) ReadSlice(delim byte) (line []byte, err os.Error) {
}
// ReadBytes reads until the first occurrence of delim in the input,
// returning a string containing the data up to and including the delimiter.
// returning a slice containing the data up to and including the delimiter.
// If ReadBytes encounters an error before finding a delimiter,
// it returns the data read before the error and the error itself (often os.EOF).
// ReadBytes returns err != nil if and only if line does not end in delim.