Skip to content

doc: use U+2212 for minus sign in floating-point -0.0 remarks #84256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions library/std/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,10 +807,10 @@ mod prim_tuple {}
///
/// Additionally, `f32` can represent some special values:
///
/// - -0.0: IEEE 754 floating point numbers have a bit that indicates their sign, so -0.0 is a
/// possible value. For comparison `-0.0 == +0.0` is true but floating point operations can
/// carry the sign bit through arithmetic operations. This means `-1.0 * 0.0` produces -0.0 and
/// a negative number rounded to a value smaller than a float can represent also produces -0.0.
/// - 0.0: IEEE 754 floating point numbers have a bit that indicates their sign, so 0.0 is a
/// possible value. For comparison 0.0 = +0.0, but floating point operations can carry
/// the sign bit through arithmetic operations. This means −0.0 × +0.0 produces 0.0 and
/// a negative number rounded to a value smaller than a float can represent also produces 0.0.
/// - [∞](#associatedconstant.INFINITY) and
/// [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
/// like `1.0 / 0.0`.
Expand Down