about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authormchaput <matt@whoosh.ca>2014-12-14 00:48:09 -0500
committermchaput <matt@whoosh.ca>2014-12-14 00:48:09 -0500
commitf053f29ff5469ff955221d1ea8d6154ef276ce10 (patch)
tree293ae0079859ec585ee79c92cb78dac9eae57bd0 /src/libcore
parentf07526a9990ab07983905fb5f383e62ae72242bc (diff)
Fix mispelling in char.rs error message
Error message has wrong spelling ("radix is to high").
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/char.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/char.rs b/src/libcore/char.rs
index 75f7991df02..07db32bcc2b 100644
--- a/src/libcore/char.rs
+++ b/src/libcore/char.rs
@@ -141,7 +141,7 @@ pub fn to_digit(c: char, radix: uint) -> Option<uint> {
 #[unstable = "pending decisions about costructors for primitives"]
 pub fn from_digit(num: uint, radix: uint) -> Option<char> {
     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 {