Skip to content

Commit 39749a3

Browse files
author
Stefan Bucur
committed
Fix typo in char's from_digit error message
1 parent daa71e4 commit 39749a3

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
@@ -147,7 +147,7 @@ pub fn to_digit(c: char, radix: uint) -> Option<uint> {
147147
#[inline]
148148
pub fn from_digit(num: uint, radix: uint) -> Option<char> {
149149
if radix > 36 {
150-
fail!("from_digit: radix is to high (maximum 36)");
150+
fail!("from_digit: radix is too high (maximum 36)");
151151
}
152152
if num < radix {
153153
unsafe {

0 commit comments

Comments
 (0)