Make ascii_change_case_unchecked const
Rebases and makes changes required by the recent merge of #81837.
This commit is contained in:
parent
7b41ad1c1f
commit
1ed9dd4179
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ impl u8 {
|
|||
|
||||
/// Assumes self is ascii
|
||||
#[inline]
|
||||
pub(crate) fn ascii_change_case_unchecked(&self) -> u8 {
|
||||
pub(crate) const fn ascii_change_case_unchecked(&self) -> u8 {
|
||||
*self ^ ASCII_CASE_MASK
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue