Commit 20ee67ac authored by Robert Griesemer's avatar Robert Griesemer

cmd/compile: test for lower-case letters first in isAlpha

Lower-case letters are more common in identifiers.

Change-Id: I49c39e3ac810eea57d15c1433608daec212c9792
Reviewed-on: https://go-review.googlesource.com/19760Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
parent 11e51ed4
......@@ -832,7 +832,7 @@ func isSpace(c int) bool {
}
func isAlpha(c int) bool {
return 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z'
return 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z'
}
func isDigit(c int) bool {
......
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