]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: fix SplitFunc docs
authorShenghou Ma <minux.ma@gmail.com>
Wed, 22 May 2013 20:38:32 +0000 (04:38 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 22 May 2013 20:38:32 +0000 (04:38 +0800)
Fixes #5532.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9672044

src/pkg/bufio/scan.go

index 2e1a2e99973e23b0e617da127f4c50bd481e08c6..537a6db05844681bb0ecdad9922079bf32434da2 100644 (file)
@@ -44,8 +44,8 @@ type Scanner struct {
 // to give. The return values are the number of bytes to advance the input
 // and the next token to return to the user, plus an error, if any. If the
 // data does not yet hold a complete token, for instance if it has no newline
-// while scanning lines, SplitFunc can return (0, nil) to signal the Scanner
-// to read more data into the slice and try again with a longer slice
+// while scanning lines, SplitFunc can return (0, nil, nil) to signal the
+// Scanner to read more data into the slice and try again with a longer slice
 // starting at the same point in the input.
 //
 // If the returned error is non-nil, scanning stops and the error