Skip to content

Commit f93f693

Browse files
committed
use assert instead of assert_matches
1 parent 3ae3d11 commit f93f693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ macro_rules! from_str_radix {
14551455
/// ```
14561456
/// Trailing space returns error:
14571457
/// ```
1458-
#[doc = concat!("assert_matches!(", stringify!($int_ty), "::from_str_radix(\"1 \", 10), Err(_));")]
1458+
#[doc = concat!("assert!(", stringify!($int_ty), "::from_str_radix(\"1 \", 10).is_err());")]
14591459
/// ```
14601460
#[stable(feature = "rust1", since = "1.0.0")]
14611461
#[rustc_const_unstable(feature = "const_int_from_str", issue = "59133")]
@@ -1599,7 +1599,7 @@ macro_rules! from_str_radix_size_impl {
15991599
/// ```
16001600
/// Trailing space returns error:
16011601
/// ```
1602-
#[doc = concat!("assert_matches!(", stringify!($size), "::from_str_radix(\"1 \", 10), Err(_));")]
1602+
#[doc = concat!("assert!(", stringify!($size), "::from_str_radix(\"1 \", 10).is_err());")]
16031603
/// ```
16041604
#[stable(feature = "rust1", since = "1.0.0")]
16051605
#[rustc_const_unstable(feature = "const_int_from_str", issue = "59133")]

0 commit comments

Comments
 (0)