From: est31 Date: Thu, 30 Mar 2017 22:40:02 +0000 (+0200) Subject: Allow us to remove masking in the future X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=873a3b0363fd8f211f720c3b021a4e1c4c11f754;p=rust.git Allow us to remove masking in the future --- diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs index 8759f103dff..316e6841c4f 100644 --- a/src/libstd/f32.rs +++ b/src/libstd/f32.rs @@ -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. /// diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs index a4645c3a70f..be55cb80c92 100644 --- a/src/libstd/f64.rs +++ b/src/libstd/f64.rs @@ -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. ///