File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1238,11 +1238,11 @@ impl f32 {
12381238 ///
12391239 /// ```
12401240 /// #![feature(float_bits_conv)]
1241- /// assert !((1f32).to_bits() != 1f32 as u32); // to_bits() is not casting!
1241+ /// assert_ne !((1f32).to_bits(), 1f32 as u32); // to_bits() is not casting!
12421242 /// assert_eq!((12.5f32).to_bits(), 0x41480000);
12431243 ///
12441244 /// ```
1245- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1245+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
12461246 #[ inline]
12471247 pub fn to_bits ( self ) -> u32 {
12481248 unsafe { :: mem:: transmute ( self ) }
@@ -1270,7 +1270,7 @@ impl f32 {
12701270 /// // Example for a signaling NaN value:
12711271 /// assert_eq!(f32::from_bits(0x7F800001), Err(()));
12721272 /// ```
1273- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1273+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
12741274 #[ inline]
12751275 pub fn from_bits ( v : u32 ) -> Result < Self , ( ) > {
12761276 match v {
Original file line number Diff line number Diff line change @@ -1134,7 +1134,7 @@ impl f64 {
11341134 /// assert_eq!((12.5f64).to_bits(), 0x4029000000000000);
11351135 ///
11361136 /// ```
1137- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1137+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
11381138 #[ inline]
11391139 pub fn to_bits ( self ) -> u64 {
11401140 unsafe { :: mem:: transmute ( self ) }
@@ -1162,7 +1162,7 @@ impl f64 {
11621162 /// // Example for a signaling NaN value:
11631163 /// assert_eq!(f64::from_bits(0x7FF0000000000001), Err(()));
11641164 /// ```
1165- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1165+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
11661166 #[ inline]
11671167 pub fn from_bits ( v : u64 ) -> Result < Self , ( ) > {
11681168 match v {
You can’t perform that action at this time.
0 commit comments