good morning!!!!

Skip to content
Snippets Groups Projects
Commit 98ec5e50 authored by Mark Rushakoff's avatar Mark Rushakoff Committed by Péter Szilágyi
Browse files

core/asm: rename isAlphaNumeric to isLetter (#16212)

The function would return false for numbers, so isLetter is a more
accurate description of the behavior.
parent b574b577
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ func lexLine(l *lexer) stateFn {
return lexComment
case isSpace(r):
l.ignore()
case isAlphaNumeric(r) || r == '_':
case isLetter(r) || r == '_':
return lexElement
case isNumber(r):
return lexNumber
......@@ -278,7 +278,7 @@ func lexElement(l *lexer) stateFn {
return lexLine
}
func isAlphaNumeric(t rune) bool {
func isLetter(t rune) bool {
return unicode.IsLetter(t)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment