Commit 3d853585 authored by Robert Griesemer's avatar Robert Griesemer

text/scanner: fix comment

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/105300044
parent 2b309c6e
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment