]> git.lizzy.rs Git - rust.git/commitdiff
match std f32 primitive docs to core f32 primitive docs
authorPyry Kontio <pyry.kontio@drasa.eu>
Thu, 31 Mar 2022 09:50:14 +0000 (18:50 +0900)
committerPyry Kontio <pyry.kontio@drasa.eu>
Thu, 31 Mar 2022 09:50:14 +0000 (18:50 +0900)
library/std/src/primitive_docs.rs

index ab4bb0f26696b2c1dd841027213ebe8a31b8c474..ac4e668112b94a1248a4141353e033682123eb14 100644 (file)
@@ -989,8 +989,9 @@ mod prim_tuple {}
 ///     is deviated from.
 ///   - Lastly, there are multiple bit patterns that are considered NaN.
 ///     Rust does not currently guarantee that the bit patterns of NaN are
-///     preserved over arithmetic operations,
-///     so there may be some surprising results upon inspecting the bit patterns,
+///     preserved over arithmetic operations, and they are not guaranteed to be
+///     portable or even fully deterministic! This means that there may be some
+///     surprising results upon inspecting the bit patterns,
 ///     as the same calculations might produce NaNs with different bit patterns.
 ///
 /// For more information on floating point numbers, see [Wikipedia][wikipedia].