We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a8abc6 + 354ddbf commit 6436059Copy full SHA for 6436059
src/libcore/num/mod.rs
@@ -4376,7 +4376,7 @@ impl u8 {
4376
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
4377
#[inline]
4378
pub fn to_ascii_uppercase(&self) -> u8 {
4379
- // Unset the fith bit if this is a lowercase letter
+ // Unset the fifth bit if this is a lowercase letter
4380
*self & !((self.is_ascii_lowercase() as u8) << 5)
4381
}
4382
@@ -4399,7 +4399,7 @@ impl u8 {
4399
4400
4401
pub fn to_ascii_lowercase(&self) -> u8 {
4402
- // Set the fith bit if this is an uppercase letter
+ // Set the fifth bit if this is an uppercase letter
4403
*self | ((self.is_ascii_uppercase() as u8) << 5)
4404
4405
0 commit comments