about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-16 00:27:31 +0100
committerGitHub <noreply@github.com>2024-02-16 00:27:31 +0100
commit1630e04509aaf330ea3628fa6b9d50cbb4037a34 (patch)
tree7f16aca55375ae38432bf3fa3fc12904716b1c4c
parent3803469473bb486d81d29c46ea0f3c7f175a3bc3 (diff)
parentfffcb4c8771ad1a688bf9083d948769664d5fcb0 (diff)
downloadrust-1630e04509aaf330ea3628fa6b9d50cbb4037a34.tar.gz
rust-1630e04509aaf330ea3628fa6b9d50cbb4037a34.zip
Rollup merge of #120971 - PizzasBear:patch-1, r=Nilstrieb
Fix comment in core/src/str/validations.rs

Fix minor issue in the comment
-rw-r--r--library/core/src/str/validations.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/str/validations.rs b/library/core/src/str/validations.rs
index 2acef432f20..a11d7fee8af 100644
--- a/library/core/src/str/validations.rs
+++ b/library/core/src/str/validations.rs
@@ -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