Skip to content

Commit 72dc6fc

Browse files
committed
Rollup merge of #24347 - xamgore:master, r=huonw
Docs meant that ParseIntError is returned though the function returns ParseFloatError.
2 parents 4d38b49 + 11c1846 commit 72dc6fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ macro_rules! from_str_radix_float_impl {
27052705
///
27062706
/// # Return value
27072707
///
2708-
/// `Err(ParseIntError)` if the string did not represent a valid number. Otherwise,
2708+
/// `Err(ParseFloatError)` if the string did not represent a valid number.
27092709
/// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
27102710
#[inline]
27112711
#[allow(deprecated)]
@@ -2734,7 +2734,7 @@ macro_rules! from_str_radix_float_impl {
27342734
///
27352735
/// # Return value
27362736
///
2737-
/// `Err(ParseIntError)` if the string did not represent a valid number. Otherwise,
2737+
/// `Err(ParseFloatError)` if the string did not represent a valid number.
27382738
/// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
27392739
fn from_str_radix(src: &str, radix: u32)
27402740
-> Result<$T, ParseFloatError> {

0 commit comments

Comments
 (0)