Skip to content

Commit

Permalink
Fix Scanner.Scan() comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Nov 20, 2014
1 parent f94b588 commit bac1b48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions influxql/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ func NewScanner(r io.Reader) *Scanner {
return &Scanner{r: &reader{r: bufio.NewReader(r)}}
}

// Scan returns the next token from the underlying reader.
// Also returns the position and literal string text read for the token.
// Scan returns the next token and position from the underlying reader.
// Also returns the literal text read for strings, numbers, and duration tokens
// since these token types can have different literal representations.
func (s *Scanner) Scan() (tok Token, pos Pos, lit string) {
// Read next code point.
ch0, pos := s.r.read()
Expand Down

0 comments on commit bac1b48

Please sign in to comment.