Rollup merge of #24347 - xamgore:master, r=huonw

Docs meant that ParseIntError is returned though the function returns ParseFloatError.
This commit is contained in:
Manish Goregaokar
2015-04-12 18:46:15 +05:30

View File

@@ -2705,7 +2705,7 @@ macro_rules! from_str_radix_float_impl {
/// ///
/// # Return value /// # 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`. /// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
#[inline] #[inline]
#[allow(deprecated)] #[allow(deprecated)]
@@ -2734,7 +2734,7 @@ macro_rules! from_str_radix_float_impl {
/// ///
/// # Return value /// # 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`. /// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
fn from_str_radix(src: &str, radix: u32) fn from_str_radix(src: &str, radix: u32)
-> Result<$T, ParseFloatError> { -> Result<$T, ParseFloatError> {