about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/enum-tuple.rs
diff options
context:
space:
mode:
authorKevin Reid <kpreid@google.com>2021-08-30 20:20:14 -0700
committerKevin Reid <kpreid@google.com>2021-08-30 20:31:52 -0700
commit18df8d6e559174700e302369c2fe0d9c7c143e66 (patch)
tree4a93a70e5aa20106f782e0bb9586648d79938a2f /src/test/rustdoc-ui/coverage/enum-tuple.rs
parent6f388bb369ddb6fb64e547009e031598425f773c (diff)
downloadrust-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