Skip to content

Commit

Permalink
Update Instant.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb authored Dec 11, 2024
1 parent 3de6ba9 commit 4c4e638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commonKotlin/src/Instant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ internal fun parseIso(isoString: String): Instant {
parseFailure("Expected at most 10 digits for the year number, got ${i - yearStart} digits")
}
i == yearStart + 10 && s[yearStart] >= '2' -> {
parseFailure("Expected at most 9 digits for the year number or year 1000000000, got ${i - yearStart}")
parseFailure("Expected at most 9 digits for the year number or year 1000000000, got ${i - yearStart} digits")
}
i - yearStart < 4 -> {
parseFailure("The year number must be padded to 4 digits, got ${i - yearStart} digits")
Expand Down

0 comments on commit 4c4e638

Please sign in to comment.