From 873a3b0363fd8f211f720c3b021a4e1c4c11f754 Mon Sep 17 00:00:00 2001 From: est31 Date: Fri, 31 Mar 2017 00:40:02 +0200 Subject: [PATCH] Allow us to remove masking in the future --- src/libstd/f32.rs | 4 ++-- src/libstd/f64.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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. /// -- 2.44.0