File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ impl u8 {
549
549
#[ rustc_const_stable( feature = "const_ascii_methods_on_intrinsics" , since = "1.52.0" ) ]
550
550
#[ inline]
551
551
pub const fn to_ascii_uppercase ( & self ) -> u8 {
552
- // Toggle the fifth bit if this is a lowercase letter
552
+ // Toggle the 6th bit if this is a lowercase letter
553
553
* self ^ ( ( self . is_ascii_lowercase ( ) as u8 ) * ASCII_CASE_MASK )
554
554
}
555
555
@@ -574,7 +574,7 @@ impl u8 {
574
574
#[ rustc_const_stable( feature = "const_ascii_methods_on_intrinsics" , since = "1.52.0" ) ]
575
575
#[ inline]
576
576
pub const fn to_ascii_lowercase ( & self ) -> u8 {
577
- // Set the fifth bit if this is an uppercase letter
577
+ // Set the 6th bit if this is an uppercase letter
578
578
* self | ( self . is_ascii_uppercase ( ) as u8 * ASCII_CASE_MASK )
579
579
}
580
580
You can’t perform that action at this time.
0 commit comments