We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
strict_sub_signed
1 parent c42b177 commit 79ed7c1Copy full SHA for 79ed7c1
library/core/src/num/uint_macros.rs
@@ -830,7 +830,7 @@ macro_rules! uint_impl {
830
///
831
/// ```should_panic
832
/// #![feature(strict_overflow_ops)]
833
- #[doc = concat!("let _ = (", stringify!($SelfT), "::MIN + 2).strict_sub_signed(3);")]
+ #[doc = concat!("let _ = (", stringify!($SelfT), "::MAX).strict_sub_signed(-1);")]
834
/// ```
835
#[unstable(feature = "strict_overflow_ops", issue = "118260")]
836
#[must_use = "this returns the result of the operation, \
0 commit comments