Commit 5043f0a1 authored by Stephen Ma's avatar Stephen Ma

bufio: minor documentation fix.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2301045
parent 454f03ff
...@@ -284,7 +284,7 @@ func (b *Reader) ReadSlice(delim byte) (line []byte, err os.Error) { ...@@ -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, // 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, // If ReadBytes encounters an error before finding a delimiter,
// it returns the data read before the error and the error itself (often os.EOF). // 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. // ReadBytes returns err != nil if and only if line does not end in delim.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment