Rollup merge of #124184 - gurry:124152-suggest-unsigned-abs-in-abs-doc, r=jhpratt

Suggest using `unsigned_abs` in `abs` documentation

Fixes #124152
This commit is contained in:
Guillaume Gomez 2024-04-21 13:30:26 +02:00 committed by GitHub
commit 24b8c54f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3199,7 +3199,8 @@ macro_rules! int_impl {
/// that code in debug mode will trigger a panic on this case and
/// optimized code will return
#[doc = concat!("`", stringify!($SelfT), "::MIN`")]
/// without a panic.
/// without a panic. If you do not want this behavior consider
/// using [`unsigned_abs`](Self::unsigned_abs) instead.
///
/// # Examples
///