rollup merge of #19830: mchaput/patch-1

Error message has wrong spelling ("radix is to high").
This commit is contained in:
Alex Crichton 2014-12-17 08:34:07 -08:00
commit 823cd7a8d5

View File

@ -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 {