Skip to content

Commit

Permalink
More beautiful kotlinified code
Browse files Browse the repository at this point in the history
  • Loading branch information
QuickWrite committed Aug 28, 2024
1 parent e3c29bd commit 65c34d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/lexer/StringJSONLexer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class StringJSONLexer(private val content: CharSequence) : JSONLexer {
}
}

for (i in 0..< input.length) {
for (i in input.indices) {
if(content.getChar(position) != input[i]) {
val start = position - i
captureRestToken()
Expand Down

0 comments on commit 65c34d1

Please sign in to comment.