aboutsummaryrefslogtreecommitdiff
path: root/src/bufio/scan.go
diff options
context:
space:
mode:
authorAaron Jacobs <jacobsa@google.com>2015-03-18 08:14:07 +1100
committerIan Lance Taylor <iant@golang.org>2015-03-18 00:59:49 +0000
commitecd630de6dd2e5285f18c650207b5c84649402db (patch)
tree2c59fd2ce97c8a62448f4cf390f0cb9b8ce92cb9 /src/bufio/scan.go
parentd26fdf295ed1f0154f65110b17ac6ecf4300dad4 (diff)
downloadgo-ecd630de6dd2e5285f18c650207b5c84649402db.tar.xz
bufio: fix incorrect comment on Scanner.Scan
Change-Id: I216511a4bce431de0a468f618a7a7c4da79e2979 Reviewed-on: https://go-review.googlesource.com/7710 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/bufio/scan.go')
-rw-r--r--src/bufio/scan.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bufio/scan.go b/src/bufio/scan.go
index 364d159613..7a349fa8fa 100644
--- a/src/bufio/scan.go
+++ b/src/bufio/scan.go
@@ -109,7 +109,7 @@ func (s *Scanner) Text() string {
// After Scan returns false, the Err method will return any error that
// occurred during scanning, except that if it was io.EOF, Err
// will return nil.
-// Split panics if the split function returns 100 empty tokens without
+// Scan panics if the split function returns 100 empty tokens without
// advancing the input. This is a common error mode for scanners.
func (s *Scanner) Scan() bool {
// Loop until we have a token.