Rollup merge of #100175 - fxn:patch-1, r=Mark-Simulacrum

ascii -> ASCII in code comment

Easy one I spotted while reading source code.
This commit is contained in:
Matthias Krüger 2022-08-07 01:19:35 +02:00 committed by GitHub
commit ee0b755fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
}