about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-07 01:19:35 +0200
committerGitHub <noreply@github.com>2022-08-07 01:19:35 +0200
commitee0b755fe625cd10b11adfaa51f3d0f1e3ca33f0 (patch)
treeeea80967f662513f43230189e22bf4973e70c080
parentf0ff31fa09a144b1c24099e7b93be87522200caf (diff)
parent64d1c91a31c9c7c1b03868e7c62467b352c82325 (diff)
downloadrust-ee0b755fe625cd10b11adfaa51f3d0f1e3ca33f0.tar.gz
rust-ee0b755fe625cd10b11adfaa51f3d0f1e3ca33f0.zip
Rollup merge of #100175 - fxn:patch-1, r=Mark-Simulacrum
ascii -> ASCII in code comment

Easy one I spotted while reading source code.
-rw-r--r--library/core/src/str/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs
index c4f2e283eb3..ee66895a7ed 100644
--- a/library/core/src/str/mod.rs
+++ b/library/core/src/str/mod.rs
@@ -2353,7 +2353,7 @@ impl str {
     #[inline]
     pub fn is_ascii(&self) -> bool {
         // We can treat each byte as character here: all multibyte characters
-        // start with a byte that is not in the ascii range, so we will stop
+        // start with a byte that is not in the ASCII range, so we will stop
         // there already.
         self.as_bytes().is_ascii()
     }