Skip to content

Commit a0d37d4

Browse files
committed
Suggest using unsigned_abs in abs documentation
1 parent db701c2 commit a0d37d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/num/int_macros.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3185,7 +3185,8 @@ macro_rules! int_impl {
31853185
/// that code in debug mode will trigger a panic on this case and
31863186
/// optimized code will return
31873187
#[doc = concat!("`", stringify!($SelfT), "::MIN`")]
3188-
/// without a panic.
3188+
/// without a panic. If you do not want this behavior consider
3189+
/// using [`unsigned_abs`] instead.
31893190
///
31903191
/// # Examples
31913192
///

0 commit comments

Comments
 (0)