File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,8 @@ impl f32 {
550
550
#[ inline]
551
551
#[ rustc_deprecated( since = "1.10.0" ,
552
552
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 \
554
555
known as `fdimf` in C). If you truly need the positive \
555
556
difference, consider using that expression or the C function \
556
557
`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 {
491
491
#[ inline]
492
492
#[ rustc_deprecated( since = "1.10.0" ,
493
493
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 \
495
496
known as `fdim` in C). If you truly need the positive \
496
497
difference, consider using that expression or the C function \
497
498
`fdim`, depending on how you wish to handle NaN (please consider \
You can’t perform that action at this time.
0 commit comments