diff --git a/src/libcore/char.rs b/src/libcore/char.rs index fbc444c2be3..729903a8533 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -141,7 +141,7 @@ pub fn to_digit(c: char, radix: uint) -> Option { #[unstable = "pending decisions about costructors for primitives"] pub fn from_digit(num: uint, radix: uint) -> Option { if radix > 36 { - panic!("from_digit: radix is to high (maximum 36)"); + panic!("from_digit: radix is too high (maximum 36)"); } if num < radix { unsafe {