Skip to content

Commit 3ecfe74

Browse files
Rollup merge of rust-lang#124184 - gurry:124152-suggest-unsigned-abs-in-abs-doc, r=jhpratt
Suggest using `unsigned_abs` in `abs` documentation Fixes rust-lang#124152
2 parents d11afab + d32491f commit 3ecfe74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/num/int_macros.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3199,7 +3199,8 @@ macro_rules! int_impl {
31993199
/// that code in debug mode will trigger a panic on this case and
32003200
/// optimized code will return
32013201
#[doc = concat!("`", stringify!($SelfT), "::MIN`")]
3202-
/// without a panic.
3202+
/// without a panic. If you do not want this behavior consider
3203+
/// using [`unsigned_abs`](Self::unsigned_abs) instead.
32033204
///
32043205
/// # Examples
32053206
///

0 commit comments

Comments
 (0)