]> Cypherpunks repositories - gostls13.git/commitdiff
text/scanner: fix comment
authorRobert Griesemer <gri@golang.org>
Tue, 17 Jun 2014 16:34:11 +0000 (09:34 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 17 Jun 2014 16:34:11 +0000 (09:34 -0700)
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/105300044

src/pkg/text/scanner/scanner.go

index e7cdd33366a2f95706922612d8f13f416d9076bd..25b2c9e02afb79a6e892b5a8b4a278e4448b824d 100644 (file)
@@ -347,7 +347,7 @@ func (s *Scanner) isIdentRune(ch rune, i int) bool {
 }
 
 func (s *Scanner) scanIdentifier() rune {
-       // we know the zero'th rune is OK; start with 2nd one
+       // we know the zero'th rune is OK; start scanning at the next one
        ch := s.next()
        for i := 1; s.isIdentRune(ch, i); i++ {
                ch = s.next()