File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1238,11 +1238,11 @@ impl f32 {
1238
1238
///
1239
1239
/// ```
1240
1240
/// #![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!
1242
1242
/// assert_eq!((12.5f32).to_bits(), 0x41480000);
1243
1243
///
1244
1244
/// ```
1245
- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1245
+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
1246
1246
#[ inline]
1247
1247
pub fn to_bits ( self ) -> u32 {
1248
1248
unsafe { :: mem:: transmute ( self ) }
@@ -1270,7 +1270,7 @@ impl f32 {
1270
1270
/// // Example for a signaling NaN value:
1271
1271
/// assert_eq!(f32::from_bits(0x7F800001), Err(()));
1272
1272
/// ```
1273
- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1273
+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
1274
1274
#[ inline]
1275
1275
pub fn from_bits ( v : u32 ) -> Result < Self , ( ) > {
1276
1276
match v {
Original file line number Diff line number Diff line change @@ -1134,7 +1134,7 @@ impl f64 {
1134
1134
/// assert_eq!((12.5f64).to_bits(), 0x4029000000000000);
1135
1135
///
1136
1136
/// ```
1137
- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1137
+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
1138
1138
#[ inline]
1139
1139
pub fn to_bits ( self ) -> u64 {
1140
1140
unsafe { :: mem:: transmute ( self ) }
@@ -1162,7 +1162,7 @@ impl f64 {
1162
1162
/// // Example for a signaling NaN value:
1163
1163
/// assert_eq!(f64::from_bits(0x7FF0000000000001), Err(()));
1164
1164
/// ```
1165
- #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "0 " ) ]
1165
+ #[ unstable( feature = "float_bits_conv" , reason = "recently added" , issue = "40470 " ) ]
1166
1166
#[ inline]
1167
1167
pub fn from_bits ( v : u64 ) -> Result < Self , ( ) > {
1168
1168
match v {
You can’t perform that action at this time.
0 commit comments