diff options
| author | Kevin Reid <kpreid@google.com> | 2021-08-30 20:20:14 -0700 |
|---|---|---|
| committer | Kevin Reid <kpreid@google.com> | 2021-08-30 20:31:52 -0700 |
| commit | 18df8d6e559174700e302369c2fe0d9c7c143e66 (patch) | |
| tree | 4a93a70e5aa20106f782e0bb9586648d79938a2f /src/test/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | 6f388bb369ddb6fb64e547009e031598425f773c (diff) | |
| download | rust-18df8d6e559174700e302369c2fe0d9c7c143e66.tar.gz rust-18df8d6e559174700e302369c2fe0d9c7c143e66.zip | |
Expand documentation for `FpCategory`.
I intend these changes to be helpful to readers who are not yet familiar with the quirks of floating-point numbers. Additionally, I felt it was misleading to describe `Nan` as being the result of division by zero, since most divisions by zero (except for 0/0) produce `Infinite` floats, so I moved that remark to the `Infinite` variant with adjustment. The first sentence of the `Nan` documentation is copied from `f32`; I followed the example of the `f64` documentation by referring to `f32` for general concepts, rather than duplicating the text.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
