Skip to content

Commit

Permalink
Suggest using unsigned_abs in abs documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gurry committed Apr 20, 2024
1 parent db701c2 commit 02ac46c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/num/int_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,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
///
Expand Down

0 comments on commit 02ac46c

Please sign in to comment.