Fix mispelling in char.rs error message
Error message has wrong spelling ("radix is to high").
This commit is contained in:
parent
f07526a999
commit
f053f29ff5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue