mirror of
https://github.com/golang/go
synced 2024-11-24 01:30:10 -07:00
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>
This commit is contained in:
parent
d26fdf295e
commit
ecd630de6d
@ -109,7 +109,7 @@ func (s *Scanner) Text() string {
|
|||||||
// After Scan returns false, the Err method will return any error that
|
// After Scan returns false, the Err method will return any error that
|
||||||
// occurred during scanning, except that if it was io.EOF, Err
|
// occurred during scanning, except that if it was io.EOF, Err
|
||||||
// will return nil.
|
// 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.
|
// advancing the input. This is a common error mode for scanners.
|
||||||
func (s *Scanner) Scan() bool {
|
func (s *Scanner) Scan() bool {
|
||||||
// Loop until we have a token.
|
// Loop until we have a token.
|
||||||
|
Loading…
Reference in New Issue
Block a user