mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
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:
commit
24b8c54f6d
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user