diff options
| author | Pyry Kontio <pyry.kontio@drasa.eu> | 2022-03-31 00:58:43 +0900 |
|---|---|---|
| committer | Pyry Kontio <pyry.kontio@drasa.eu> | 2022-03-31 02:10:13 +0900 |
| commit | 35611872210094bfa7d9eaacc83badb218ed045e (patch) | |
| tree | 94546ea036aa3db9bdaf97481dcf904861ec3855 /compiler/rustc_mir_transform/src | |
| parent | 3e7514670db841a7f0d7656f3b13b1c8b2c11599 (diff) | |
| download | rust-35611872210094bfa7d9eaacc83badb218ed045e.tar.gz rust-35611872210094bfa7d9eaacc83badb218ed045e.zip | |
Improve floating point documentation:
- Refine the "NaN as a special value" top level explanation of f32 - Refine `const NAN` docstring. - Refine `fn is_sign_positive` and `fn is_sign_negative` docstrings. - Refine `fn min` and `fn max` docstrings. - Refine `fn trunc` docstrings. - Refine `fn powi` docstrings. - Refine `fn copysign` docstrings. - Reword `NaN` and `NAN` as plain "NaN", unless they refer to the specific `const NAN`. - Reword "a number" to `self` in function docstrings to clarify. - Remove "Returns NAN if the number is NAN" as this is told to be the default behavior in the top explanation. - Remove "propagating NaNs", as full propagation (preservation of payloads) is not guaranteed.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions
