From cb8782e8b3857978118b159e905b9715eb8ce403 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Thu, 23 May 2013 04:38:32 +0800 Subject: [PATCH] bufio: fix SplitFunc docs Fixes #5532. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9672044 --- src/pkg/bufio/scan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.48.1