]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: minor documentation fix.
authorStephen Ma <stephenm@golang.org>
Wed, 6 Oct 2010 08:39:30 +0000 (19:39 +1100)
committerStephen Ma <stephenm@golang.org>
Wed, 6 Oct 2010 08:39:30 +0000 (19:39 +1100)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2301045

src/pkg/bufio/bufio.go

index 1cac0792748a30450bd80989488e4fde9a91414a..8c951903a1767d76b7c1237ce3357eb9cad66efc 100644 (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.