]> git.lizzy.rs Git - rust.git/commitdiff
Allow us to remove masking in the future
authorest31 <MTest31@outlook.com>
Thu, 30 Mar 2017 22:40:02 +0000 (00:40 +0200)
committerest31 <MTest31@outlook.com>
Tue, 18 Apr 2017 00:43:16 +0000 (02:43 +0200)
src/libstd/f32.rs
src/libstd/f64.rs

index 8759f103dff1fb9fb6f7855767c9dc1655ad4f09..316e6841c4feabf562365d72fdda5b7159e1a749 100644 (file)
@@ -1257,8 +1257,8 @@ pub fn to_bits(self) -> u32 {
     /// There is only one difference to a bare `transmute`:
     /// Due to the implications onto Rust's safety promises being
     /// uncertain, if the representation of a signaling NaN "sNaN" float
-    /// is passed to the function, a quiet NaN will be returned
-    /// instead.
+    /// is passed to the function, the implementation is allowed to
+    /// return a quiet NaN instead.
     ///
     /// Note that this function is distinct from casting.
     ///
index a4645c3a70f97d2a8c706b0e6b8d908e9f7f5d7c..be55cb80c92fa3b9f1396ba28ba91d1a9803f9ba 100644 (file)
@@ -1149,8 +1149,8 @@ pub fn to_bits(self) -> u64 {
     /// There is only one difference to a bare `transmute`:
     /// Due to the implications onto Rust's safety promises being
     /// uncertain, if the representation of a signaling NaN "sNaN" float
-    /// is passed to the function, a quiet NaN will be returned
-    /// instead.
+    /// is passed to the function, the implementation is allowed to
+    /// return a quiet NaN instead.
     ///
     /// Note that this function is distinct from casting.
     ///