Skip to content

Commit fffcb4c

Browse files
authored
Fix comment in core/src/str/validations.rs
1 parent b17491c commit fffcb4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/str/validations.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pub(super) const fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
161161
// first E0 A0 80 last EF BF BF
162162
// excluding surrogates codepoints \u{d800} to \u{dfff}
163163
// ED A0 80 to ED BF BF
164-
// 4-byte encoding is for codepoints \u{1000}0 to \u{10ff}ff
164+
// 4-byte encoding is for codepoints \u{10000} to \u{10ffff}
165165
// first F0 90 80 80 last F4 8F BF BF
166166
//
167167
// Use the UTF-8 syntax from the RFC

0 commit comments

Comments
 (0)