Skip to content

Commit

Permalink
auto merge of #16316 : forticulous/rust/char-Fix, r=alexcrichton
Browse files Browse the repository at this point in the history
Signature for `from_digit` in `Char` wasn't using `Self` so there was no way to use this method
  • Loading branch information
bors committed Aug 7, 2014
2 parents 7be8f0a + ef03363 commit e9c5c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ pub trait Char {
/// # Failure
///
/// Fails if given a radix > 36.
fn from_digit(num: uint, radix: uint) -> Option<char>;
fn from_digit(num: uint, radix: uint) -> Option<Self>;

/// Returns the hexadecimal Unicode escape of a character.
///
Expand Down

0 comments on commit e9c5c4c

Please sign in to comment.