rollup merge of #18013 : stefanbucur/patch-1
This commit is contained in:
commit
2e2d681d88
|
@ -147,7 +147,7 @@ pub fn to_digit(c: char, radix: uint) -> Option<uint> {
|
|||
#[inline]
|
||||
pub fn from_digit(num: uint, radix: uint) -> Option<char> {
|
||||
if radix > 36 {
|
||||
fail!("from_digit: radix is to high (maximum 36)");
|
||||
fail!("from_digit: radix is too high (maximum 36)");
|
||||
}
|
||||
if num < radix {
|
||||
unsafe {
|
||||
|
|
Loading…
Reference in New Issue