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:
commit
ee0b755fe6
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user