Skip to content

Commit

Permalink
Replace doc test with doc macro call
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerkindt committed Aug 12, 2021
1 parent 57dacfe commit e240853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/saturating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ macro_rules! saturating_int_impl_signed {
#[doc = concat!("assert_eq!(Saturating(-100", stringify!($t), ").abs(), Saturating(100));")]
#[doc = concat!("assert_eq!(Saturating(", stringify!($t), "::MIN).abs(), Saturating((", stringify!($t), "::MIN + 1).abs()));")]
#[doc = concat!("assert_eq!(Saturating(", stringify!($t), "::MIN).abs(), Saturating(", stringify!($t), "::MIN.saturating_abs()));")]
/// assert_eq!(Saturating(-128i8).abs().0 as u8, i8::MAX as u8);
#[doc = concat!("assert_eq!(Saturating(", stringify!($t), "::MIN).abs(), Saturating(", stringify!($t), "::MAX));")]
/// ```
#[inline]
#[unstable(feature = "saturating_int_impl", issue = "87920")]
Expand Down

0 comments on commit e240853

Please sign in to comment.