diff options
Diffstat (limited to 'src/libcore/char.rs')
| -rw-r--r-- | src/libcore/char.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/char.rs b/src/libcore/char.rs index f507556909c..5d9553cbbbd 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -120,7 +120,7 @@ pub fn is_digit_radix(c: char, radix: uint) -> bool { #[inline] pub fn to_digit(c: char, radix: uint) -> Option<uint> { if radix > 36 { - fail!("to_digit: radix is too high (maximum 36)"); + panic!("to_digit: radix is too high (maximum 36)"); } let val = match c { '0' ... '9' => c as uint - ('0' as uint), @@ -147,7 +147,7 @@ pub fn to_digit(c: char, radix: uint) -> Option<uint> { #[inline] pub fn from_digit(num: uint, radix: uint) -> Option<char> { if radix > 36 { - fail!("from_digit: radix is too high (maximum 36)"); + panic!("from_digit: radix is to high (maximum 36)"); } if num < radix { unsafe { |
