From 1554ac76e3b45d0001ae1f80852b61647db23a0f Mon Sep 17 00:00:00 2001 From: YakoYakoYokuYoku <39890836+YakoYakoYokuYoku@users.noreply.github.com> Date: Thu, 21 Feb 2019 11:43:33 -0300 Subject: [PATCH] Fixing for doctests --- src/float.rs | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/src/float.rs b/src/float.rs index 548a207..a747a24 100644 --- a/src/float.rs +++ b/src/float.rs @@ -1908,17 +1908,6 @@ pub trait CommonFloat where Self: Num + Copy + NumCast + Neg { /// Takes self to the power of a. /// /// Returns NaN if self is negative. - /// - /// ``` - /// use num_traits::CommonFloat; - /// - /// let a = 2.0f64; - /// let b = 2.0f64; - /// - /// let difference = a.pown(b); - /// - /// assert!(difference > 3.9f64); - /// ``` fn pown(self, n: Self) -> Self; /// Take the square root of a number. @@ -1987,50 +1976,18 @@ pub trait CommonFloat where Self: Num + Copy + NumCast + Neg { fn atanh(self) -> Self; /// Returns the real part of the float. - /// - /// ``` - /// use num_traits::CommonFloat; - /// - /// let n = 0.5f64; - /// - /// assert!(n.real() > 0.4f64); - /// ``` #[inline] fn real(self) -> Self::Typo; /// Returns the imaginary part of the float which equals to zero. - /// - /// ``` - /// use num_traits::CommonFloat; - /// - /// let n = 2.7f64; - /// - /// assert!(n.imag() == 0.0f64); - /// ``` #[inline] fn imag(self) -> Self::Typo; /// Returns the absolute value of the float. - /// - /// ``` - /// use num_traits::CommonFloat; - /// - /// let z = -0.915f32; - /// - /// assert!(z.abs() > 0.9f32); - /// ``` #[inline] fn abs(self) -> Self::Typo; /// Computes the argument of the float. - /// - /// ``` - /// use num_traits::CommonFloat; - /// - /// let n = 0.8f32; - /// - /// assert_eq!(n.arg(), 0.0f32); - /// ``` #[inline] fn arg(self) -> Self::Typo; }