Skip to content

Commit

Permalink
Fix mispelling in char.rs error message
Browse files Browse the repository at this point in the history
Error message has wrong spelling ("radix is to high").
  • Loading branch information
mchaput committed Dec 14, 2014
1 parent f07526a commit f053f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f053f29

Please sign in to comment.