Fix typo in char's from_digit error message
This commit is contained in:
parent
daa71e40a9
commit
39749a3adc
@ -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 to high (maximum 36)");
|
||||
fail!("from_digit: radix is too high (maximum 36)");
|
||||
}
|
||||
if num < radix {
|
||||
unsafe {
|
||||
|
Loading…
x
Reference in New Issue
Block a user