diff options
Diffstat (limited to 'src/pkg/bufio/scan.go')
| -rw-r--r-- | src/pkg/bufio/scan.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pkg/bufio/scan.go b/src/pkg/bufio/scan.go index 268ce6d1d..d94f7f9ad 100644 --- a/src/pkg/bufio/scan.go +++ b/src/pkg/bufio/scan.go @@ -27,8 +27,6 @@ import ( // control over error handling or large tokens, or must run sequential scans // on a reader, should use bufio.Reader instead. // -// TODO(r): Provide executable examples. -// type Scanner struct { r io.Reader // The reader provided by the client. split SplitFunc // The function to split the tokens. @@ -169,7 +167,6 @@ func (s *Scanner) Scan() bool { } s.end += n } - panic("not reached") } // advance consumes n bytes of the buffer. It reports whether the advance was legal. |
