Skip to content

Commit 4c64770

Browse files
Update library/std/src/primitive_docs.rs
Co-authored-by: Jubilee <[email protected]>
1 parent 1895520 commit 4c64770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/primitive_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,8 @@ mod prim_tuple {}
808808
/// Additionally, `f32` can represent some special values:
809809
///
810810
/// - −0.0: IEEE 754 floating point numbers have a bit that indicates their sign, so −0.0 is a
811-
/// possible value. For comparison `-0.0 == 0.0` is true but floating point operations can
812-
/// carry the sign bit through arithmetic operations. This means `-1.0 * 0.0` produces −0.0 and
811+
/// possible value. For comparison 0.0 = +0.0, but floating point operations can carry
812+
/// the sign bit through arithmetic operations. This means −0.0 × +0.0 produces −0.0 and
813813
/// a negative number rounded to a value smaller than a float can represent also produces −0.0.
814814
/// - [∞](#associatedconstant.INFINITY) and
815815
/// [−∞](#associatedconstant.NEG_INFINITY): these result from calculations

0 commit comments

Comments
 (0)