Skip to content

Commit 34f89fd

Browse files
committed
fix: fix compilation error in is_ascii_hexdigit()
1 parent c2434c0 commit 34f89fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/char/methods.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,10 +1248,10 @@ impl char {
12481248
if !self.is_ascii() {
12491249
return false;
12501250
}
1251-
if self.is_digit() {
1251+
if self.is_digit(10) {
12521252
return true;
12531253
}
1254-
let code = (self as u8) & !0x20; // 0x20 is the case bit
1254+
let code = (*self as u8) & !0x20; // 0x20 is the case bit
12551255
code >= b'A' && code <= b'F'
12561256
}
12571257

0 commit comments

Comments
 (0)