Skip to content

Commit 604d208

Browse files
committed
Revert unrelated changes from PR 119990
1 parent f760223 commit 604d208

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/num/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ impl u8 {
793793
#[rustc_const_stable(feature = "const_ascii_ctype_on_intrinsics", since = "1.47.0")]
794794
#[inline]
795795
pub const fn is_ascii_alphanumeric(&self) -> bool {
796-
matches!(*self, b'0'..=b'9' | b'A'..=b'Z' | b'a'..=b'z')
796+
matches!(*self, b'0'..=b'9') | matches!(*self, b'A'..=b'Z') | matches!(*self, b'a'..=b'z')
797797
}
798798

799799
/// Checks if the value is an ASCII decimal digit:
@@ -1206,9 +1206,9 @@ impl u128 {
12061206
swapped = "0x12907856341290785634129078563412",
12071207
reversed = "0x48091e6a2c48091e6a2c48091e6a2c48",
12081208
le_bytes = "[0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, \
1209-
0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]",
1209+
0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]",
12101210
be_bytes = "[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, \
1211-
0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]",
1211+
0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]",
12121212
to_xe_bytes_doc = "",
12131213
from_xe_bytes_doc = "",
12141214
bound_condition = "",

0 commit comments

Comments
 (0)