Skip to content

Commit 1ed9dd4

Browse files
committed
Make ascii_change_case_unchecked const
Rebases and makes changes required by the recent merge of #81837.
1 parent 7b41ad1 commit 1ed9dd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl u8 {
228228

229229
/// Assumes self is ascii
230230
#[inline]
231-
pub(crate) fn ascii_change_case_unchecked(&self) -> u8 {
231+
pub(crate) const fn ascii_change_case_unchecked(&self) -> u8 {
232232
*self ^ ASCII_CASE_MASK
233233
}
234234

0 commit comments

Comments
 (0)