]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/num/f32.rs
Automatic exponential formatting in Debug
[rust.git] / library / core / src / num / f32.rs
index 77132cddca272c2bdefa606776e89789ceedef4c..4104d48b4a2db721620217f587db8e2901c4de0d 100644 (file)
@@ -448,7 +448,7 @@ pub const fn is_nan(self) -> bool {
     // private use internally.
     #[inline]
     #[rustc_const_unstable(feature = "const_float_classify", issue = "72505")]
-    const fn abs_private(self) -> f32 {
+    pub(crate) const fn abs_private(self) -> f32 {
         f32::from_bits(self.to_bits() & 0x7fff_ffff)
     }
 
@@ -727,8 +727,8 @@ pub unsafe fn to_int_unchecked<Int>(self) -> Int
     ///
     /// This is currently identical to `transmute::<f32, u32>(self)` on all platforms.
     ///
-    /// See `from_bits` for some discussion of the portability of this operation
-    /// (there are almost no issues).
+    /// See [`from_bits`](Self::from_bits) for some discussion of the
+    /// portability of this operation (there are almost no issues).
     ///
     /// Note that this function is distinct from `as` casting, which attempts to
     /// preserve the *numeric* value, and not the bitwise value.