about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-12-16 14:08:39 +0100
committerGitHub <noreply@github.com>2018-12-16 14:08:39 +0100
commitcee0bddd0a4e0eb3ea8d7025f25ea95cb6a5c5ef (patch)
treea9d5de482562b0946ddd10d375446b7ed0880d4c /src/libstd/sys/unix/stack_overflow.rs
parenta777754c4d3dc88ac5a0e9e4dd9e5847779206c3 (diff)
parent967b1fc3b723117d57ff27417d811747b1bf1242 (diff)
downloadrust-cee0bddd0a4e0eb3ea8d7025f25ea95cb6a5c5ef.tar.gz
rust-cee0bddd0a4e0eb3ea8d7025f25ea95cb6a5c5ef.zip
Rollup merge of #56857 - tbu-:pr_doc_abssub, r=zackmdavis
Fix a small mistake regarding NaNs in a deprecation message

`max` on floats returns the other argument if one of them is NaN, which
would be `0.0` in this case. This is unlike the C functions `fdim` and
`fdimf` which return NaN if either of their arguments is NaN.

https://doc.rust-lang.org/1.31.0/std/primitive.f32.html#method.max
https://en.cppreference.com/w/c/numeric/math/fdim
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions