mirror of https://github.com/golang/go.git
text/scanner: fix comment
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/105300044
This commit is contained in:
parent
2b309c6e22
commit
3d853585b6
|
|
@ -347,7 +347,7 @@ func (s *Scanner) isIdentRune(ch rune, i int) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Scanner) scanIdentifier() rune {
|
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()
|
ch := s.next()
|
||||||
for i := 1; s.isIdentRune(ch, i); i++ {
|
for i := 1; s.isIdentRune(ch, i); i++ {
|
||||||
ch = s.next()
|
ch = s.next()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue