Skip to content

Commit 5c6f6cf

Browse files
authored
Unrolled build for rust-lang#120971
Rollup merge of rust-lang#120971 - PizzasBear:patch-1, r=Nilstrieb Fix comment in core/src/str/validations.rs Fix minor issue in the comment
2 parents a447249 + fffcb4c commit 5c6f6cf

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)