File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2705,8 +2705,8 @@ macro_rules! from_str_radix_float_impl {
2705
2705
///
2706
2706
/// # Return value
2707
2707
///
2708
- /// `None ` if the string did not represent a valid number. Otherwise,
2709
- /// `Some (n)` where `n` is the floating-point number represented by `src`.
2708
+ /// `Err(ParseIntError) ` if the string did not represent a valid number. Otherwise,
2709
+ /// Otherwise, `Ok (n)` where `n` is the floating-point number represented by `src`.
2710
2710
#[ inline]
2711
2711
#[ allow( deprecated) ]
2712
2712
fn from_str( src: & str ) -> Result <$T, ParseFloatError > {
@@ -2734,9 +2734,8 @@ macro_rules! from_str_radix_float_impl {
2734
2734
///
2735
2735
/// # Return value
2736
2736
///
2737
- /// `None` if the string did not represent a valid number.
2738
- /// Otherwise, `Some(n)` where `n` is the floating-point number
2739
- /// represented by `src`.
2737
+ /// `Err(ParseIntError)` if the string did not represent a valid number. Otherwise,
2738
+ /// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
2740
2739
fn from_str_radix( src: & str , radix: u32 )
2741
2740
-> Result <$T, ParseFloatError > {
2742
2741
use self :: FloatErrorKind :: * ;
You can’t perform that action at this time.
0 commit comments