Skip to content

Commit

Permalink
Unrolled build for rust-lang#120971
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rust-timer committed Feb 16, 2024
2 parents a447249 + fffcb4c commit 5c6f6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/str/validations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub(super) const fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
// first E0 A0 80 last EF BF BF
// excluding surrogates codepoints \u{d800} to \u{dfff}
// ED A0 80 to ED BF BF
// 4-byte encoding is for codepoints \u{1000}0 to \u{10ff}ff
// 4-byte encoding is for codepoints \u{10000} to \u{10ffff}
// first F0 90 80 80 last F4 8F BF BF
//
// Use the UTF-8 syntax from the RFC
Expand Down

0 comments on commit 5c6f6cf

Please sign in to comment.