Skip to content

Commit b4984f8

Browse files
Fixed a typo
Co-authored-by: Leonid Startsev <[email protected]>
1 parent f64e8a9 commit b4984f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/common/src/Utf8.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public fun Source.readString(byteCount: Long): String {
215215
*
216216
* The replacement character (`U+fffd`) will be also returned if the source starts with a well-formed
217217
* code units sequences, but a decoded value does not pass further validation, such as
218-
* the value is of range (beyond the `0x10ffff` limit of Unicode), maps to UTF-16 surrogates (`U+d800`..`U+dfff`),
218+
* the value is out of range (beyond the `0x10ffff` limit of Unicode), maps to UTF-16 surrogates (`U+d800`..`U+dfff`),
219219
* or an overlong encoding is detected (such as `0xc080` for the NUL character in modified UTF-8).
220220
*
221221
* Note that in general, returned value may not be directly converted to [Char] as it may be out

0 commit comments

Comments
 (0)