Skip to content

Commit b5dd522

Browse files
committed
Fix doc test
1 parent ab9f8a0 commit b5dd522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ macro_rules! uint_impl {
453453
/// # #![feature(uint_add_signed)]
454454
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".checked_add_signed(2), Some(3));")]
455455
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".checked_add_signed(-2), None);")]
456-
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).checked_add(3), None);")]
456+
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).checked_add_signed(3), None);")]
457457
/// ```
458458
#[unstable(feature = "uint_add_signed", issue = "none")]
459459
#[rustc_const_unstable(feature = "uint_add_signed", issue = "none")]

0 commit comments

Comments
 (0)