]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: fix incorrect comment on Scanner.Scan
authorAaron Jacobs <jacobsa@google.com>
Tue, 17 Mar 2015 21:14:07 +0000 (08:14 +1100)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 Mar 2015 00:59:49 +0000 (00:59 +0000)
Change-Id: I216511a4bce431de0a468f618a7a7c4da79e2979
Reviewed-on: https://go-review.googlesource.com/7710
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/bufio/scan.go

index 364d15961399b6a07e56f7bf4e0ae7e06b3ec33d..7a349fa8fab7e5d0a7dc37c12af4cb8279b2a612 100644 (file)
@@ -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.