Skip to content

Commit e9c5c4c

Browse files
committed
auto merge of #16316 : forticulous/rust/char-Fix, r=alexcrichton
Signature for `from_digit` in `Char` wasn't using `Self` so there was no way to use this method
2 parents 7be8f0a + ef03363 commit e9c5c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/char.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ pub trait Char {
271271
/// # Failure
272272
///
273273
/// Fails if given a radix > 36.
274-
fn from_digit(num: uint, radix: uint) -> Option<char>;
274+
fn from_digit(num: uint, radix: uint) -> Option<Self>;
275275

276276
/// Returns the hexadecimal Unicode escape of a character.
277277
///

0 commit comments

Comments
 (0)