@@ -856,9 +856,8 @@ macro_rules! int_impl {
856
856
///
857
857
/// # Return value
858
858
///
859
- /// `None` if the string did not represent a valid number.
860
- /// Otherwise, `Some(n)` where `n` is the integer represented
861
- /// by `src`.
859
+ /// `Err(ParseIntError)` if the string did not represent a valid number.
860
+ /// Otherwise, `Ok(n)` where `n` is the integer represented by `src`.
862
861
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
863
862
#[ allow( deprecated) ]
864
863
pub fn from_str_radix( src: & str , radix: u32 ) -> Result <$T, ParseIntError > {
@@ -1373,9 +1372,8 @@ macro_rules! uint_impl {
1373
1372
///
1374
1373
/// # Return value
1375
1374
///
1376
- /// `None` if the string did not represent a valid number.
1377
- /// Otherwise, `Some(n)` where `n` is the integer represented
1378
- /// by `src`.
1375
+ /// `Err(ParseIntError)` if the string did not represent a valid number.
1376
+ /// Otherwise, `Ok(n)` where `n` is the integer represented by `src`.
1379
1377
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1380
1378
#[ allow( deprecated) ]
1381
1379
pub fn from_str_radix( src: & str , radix: u32 ) -> Result <$T, ParseIntError > {
@@ -2707,8 +2705,8 @@ macro_rules! from_str_radix_float_impl {
2707
2705
///
2708
2706
/// # Return value
2709
2707
///
2710
- /// `None ` if the string did not represent a valid number. Otherwise,
2711
- /// `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`.
2712
2710
#[ inline]
2713
2711
#[ allow( deprecated) ]
2714
2712
fn from_str( src: & str ) -> Result <$T, ParseFloatError > {
@@ -2736,9 +2734,8 @@ macro_rules! from_str_radix_float_impl {
2736
2734
///
2737
2735
/// # Return value
2738
2736
///
2739
- /// `None` if the string did not represent a valid number.
2740
- /// Otherwise, `Some(n)` where `n` is the floating-point number
2741
- /// 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`.
2742
2739
fn from_str_radix( src: & str , radix: u32 )
2743
2740
-> Result <$T, ParseFloatError > {
2744
2741
use self :: FloatErrorKind :: * ;
0 commit comments