about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2017-03-13 10:25:50 +0100
committerest31 <MTest31@outlook.com>2017-04-18 02:43:16 +0200
commitbdab5cdc6336793968d790b1512fdfeeed2260e4 (patch)
tree2c7b29e2a54d1d896b3597692f08a32df7c03375 /src/libstd
parent56760abf3b0202a74fcfb1b62bc53cfbddd8259c (diff)
downloadrust-bdab5cdc6336793968d790b1512fdfeeed2260e4.tar.gz
rust-bdab5cdc6336793968d790b1512fdfeeed2260e4.zip
assert_ne and tracking issue
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/f32.rs6
-rw-r--r--src/libstd/f64.rs4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs
index 5ec01e2e215..76b629fb1d4 100644
--- a/src/libstd/f32.rs
+++ b/src/libstd/f32.rs
@@ -1238,11 +1238,11 @@ impl f32 {
     ///
     /// ```
     /// #![feature(float_bits_conv)]
-    /// assert!((1f32).to_bits() != 1f32 as u32); // to_bits() is not casting!
+    /// assert_ne!((1f32).to_bits(), 1f32 as u32); // to_bits() is not casting!
     /// assert_eq!((12.5f32).to_bits(), 0x41480000);
     ///
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn to_bits(self) -> u32 {
         unsafe { ::mem::transmute(self) }
@@ -1270,7 +1270,7 @@ impl f32 {
     /// // Example for a signaling NaN value:
     /// assert_eq!(f32::from_bits(0x7F800001), Err(()));
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn from_bits(v: u32) -> Result<Self, ()> {
         match v {
diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs
index 96d38f67ee2..f553e580f0f 100644
--- a/src/libstd/f64.rs
+++ b/src/libstd/f64.rs
@@ -1134,7 +1134,7 @@ impl f64 {
     /// assert_eq!((12.5f64).to_bits(), 0x4029000000000000);
     ///
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn to_bits(self) -> u64 {
         unsafe { ::mem::transmute(self) }
@@ -1162,7 +1162,7 @@ impl f64 {
     /// // Example for a signaling NaN value:
     /// assert_eq!(f64::from_bits(0x7FF0000000000001), Err(()));
     /// ```
-    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "0")]
+    #[unstable(feature = "float_bits_conv", reason = "recently added", issue = "40470")]
     #[inline]
     pub fn from_bits(v: u64) -> Result<Self, ()> {
         match v {