From: Shenghou Ma Date: Wed, 22 May 2013 20:38:32 +0000 (+0800) Subject: bufio: fix SplitFunc docs X-Git-Tag: go1.2rc2~1435 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cb8782e8b3857978118b159e905b9715eb8ce403;p=gostls13.git bufio: fix SplitFunc docs Fixes #5532. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9672044 --- diff --git a/src/pkg/bufio/scan.go b/src/pkg/bufio/scan.go index 2e1a2e9997..537a6db058 100644 --- a/src/pkg/bufio/scan.go +++ b/src/pkg/bufio/scan.go @@ -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