about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2021-04-16 21:48:41 +0200
committerTrevor Spiteri <tspiteri@ieee.org>2021-04-16 21:48:41 +0200
commit18955203d374fa9a39f8dfdbcdd92fda5895e41f (patch)
tree7311995b2a7646c96ee645dbb285c95e330114fd
parent0cc00c48d2c8f7344028cf007d1ee551b886b602 (diff)
downloadrust-18955203d374fa9a39f8dfdbcdd92fda5895e41f.tar.gz
rust-18955203d374fa9a39f8dfdbcdd92fda5895e41f.zip
doc: use U+2212 for minus sign in floating-point -0.0 remarks
Also remove plus sign in `-0.0 == +0.0` to make it a valid expression.
-rw-r--r--library/std/src/primitive_docs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs
index 64b22b64f4b..e6fb6ff42fc 100644
--- a/library/std/src/primitive_docs.rs
+++ b/library/std/src/primitive_docs.rs
@@ -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` 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.
 /// - [∞](#associatedconstant.INFINITY) and
 ///   [−∞](#associatedconstant.NEG_INFINITY): these result from calculations
 ///   like `1.0 / 0.0`.