Skip to content

Commit 65c34d1

Browse files
committed
More beautiful kotlinified code
1 parent e3c29bd commit 65c34d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/lexer/StringJSONLexer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class StringJSONLexer(private val content: CharSequence) : JSONLexer {
4242
}
4343
}
4444

45-
for (i in 0..< input.length) {
45+
for (i in input.indices) {
4646
if(content.getChar(position) != input[i]) {
4747
val start = position - i
4848
captureRestToken()

0 commit comments

Comments
 (0)