Skip to content

Commit

Permalink
Make ascii_change_case_unchecked const
Browse files Browse the repository at this point in the history
Rebases and makes changes required by the recent merge of #81837.
  • Loading branch information
lopopolo committed Feb 23, 2021
1 parent 7b41ad1 commit 1ed9dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/mod.rs
Expand Up @@ -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
}

Expand Down

0 comments on commit 1ed9dd4

Please sign in to comment.