Skip to content

Commit 6436059

Browse files
authored
Rollup merge of #70708 - Pocakking:fix-ascii-case-conv-typo, r=sfackler
Fix typo in u8::to_ascii_uppercase and u8::to_ascii_lowercase Corrects misspelling of fifth.
2 parents 8a8abc6 + 354ddbf commit 6436059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4376,7 +4376,7 @@ impl u8 {
43764376
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
43774377
#[inline]
43784378
pub fn to_ascii_uppercase(&self) -> u8 {
4379-
// Unset the fith bit if this is a lowercase letter
4379+
// Unset the fifth bit if this is a lowercase letter
43804380
*self & !((self.is_ascii_lowercase() as u8) << 5)
43814381
}
43824382

@@ -4399,7 +4399,7 @@ impl u8 {
43994399
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
44004400
#[inline]
44014401
pub fn to_ascii_lowercase(&self) -> u8 {
4402-
// Set the fith bit if this is an uppercase letter
4402+
// Set the fifth bit if this is an uppercase letter
44034403
*self | ((self.is_ascii_uppercase() as u8) << 5)
44044404
}
44054405

0 commit comments

Comments
 (0)