Skip to content

Commit 2ad1e0f

Browse files
committed
rollup merge of #19830: mchaput/patch-1
Error message has wrong spelling ("radix is to high").
2 parents 813d828 + f053f29 commit 2ad1e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/char.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ pub fn to_digit(c: char, radix: uint) -> Option<uint> {
141141
#[unstable = "pending decisions about costructors for primitives"]
142142
pub fn from_digit(num: uint, radix: uint) -> Option<char> {
143143
if radix > 36 {
144-
panic!("from_digit: radix is to high (maximum 36)");
144+
panic!("from_digit: radix is too high (maximum 36)");
145145
}
146146
if num < radix {
147147
unsafe {

0 commit comments

Comments
 (0)