File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -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 > {
@@ -1374,9 +1373,8 @@ macro_rules! uint_impl {
1374
1373
///
1375
1374
/// # Return value
1376
1375
///
1377
- /// `None` if the string did not represent a valid number.
1378
- /// Otherwise, `Some(n)` where `n` is the integer represented
1379
- /// by `src`.
1376
+ /// `Err(ParseIntError)` if the string did not represent a valid number.
1377
+ /// Otherwise, `Ok(n)` where `n` is the integer represented by `src`.
1380
1378
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1381
1379
#[ allow( deprecated) ]
1382
1380
pub fn from_str_radix( src: & str , radix: u32 ) -> Result <$T, ParseIntError > {
You can’t perform that action at this time.
0 commit comments