Use strings.ContainsRune instead of IndexRune

This commit is contained in:
Cameron Moore
2016-04-18 17:14:57 -05:00
parent 92c565e02b
commit 99b9371c53
+1 -1
View File
@@ -105,7 +105,7 @@ func (l *queryLexer) peek() rune {
}
func (l *queryLexer) accept(valid string) bool {
if strings.IndexRune(valid, l.next()) >= 0 {
if strings.ContainsRune(valid, l.next()) {
return true
}
l.backup()