Skip to content

Commit

Permalink
Rollup merge of rust-lang#24347 - xamgore:master, r=huonw
Browse files Browse the repository at this point in the history
Docs meant that ParseIntError is returned though the function returns ParseFloatError.
  • Loading branch information
Manishearth committed Apr 12, 2015
2 parents 8118085 + 11c1846 commit affc077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ macro_rules! from_str_radix_float_impl {
///
/// # Return value
///
/// `Err(ParseIntError)` if the string did not represent a valid number. Otherwise,
/// `Err(ParseFloatError)` if the string did not represent a valid number.
/// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
#[inline]
#[allow(deprecated)]
Expand Down Expand Up @@ -2734,7 +2734,7 @@ macro_rules! from_str_radix_float_impl {
///
/// # Return value
///
/// `Err(ParseIntError)` if the string did not represent a valid number. Otherwise,
/// `Err(ParseFloatError)` if the string did not represent a valid number.
/// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
fn from_str_radix(src: &str, radix: u32)
-> Result<$T, ParseFloatError> {
Expand Down

0 comments on commit affc077

Please sign in to comment.