File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,8 @@ impl f32 {
550550 #[ inline]
551551 #[ rustc_deprecated( since = "1.10.0" ,
552552 reason = "you probably meant `(self - other).abs()`: \
553- this operation is `(self - other).max(0.0)` (also \
553+ this operation is `(self - other).max(0.0)` \
554+ except that `abs_sub` also propagates NaNs (also \
554555 known as `fdimf` in C). If you truly need the positive \
555556 difference, consider using that expression or the C function \
556557 `fdimf`, depending on how you wish to handle NaN (please consider \
Original file line number Diff line number Diff line change @@ -491,7 +491,8 @@ impl f64 {
491491 #[ inline]
492492 #[ rustc_deprecated( since = "1.10.0" ,
493493 reason = "you probably meant `(self - other).abs()`: \
494- this operation is `(self - other).max(0.0)` (also \
494+ this operation is `(self - other).max(0.0)` \
495+ except that `abs_sub` also propagates NaNs (also \
495496 known as `fdim` in C). If you truly need the positive \
496497 difference, consider using that expression or the C function \
497498 `fdim`, depending on how you wish to handle NaN (please consider \
You can’t perform that action at this time.
0 commit comments