Really fixed float.rs

This commit is contained in:
YakoYakoYokuYoku 2019-02-21 10:58:52 -03:00 committed by GitHub
parent a8db05b33f
commit 354675a55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1912,12 +1912,12 @@ pub trait CommonFloat where Self: Num + Copy + NumCast + Neg<Output = Self> {
/// ```
/// use num_traits::CommonFloat;
///
/// let a = 4.0;
/// let b = 0.5;
/// let a = 2.0f64;
/// let b = 2.0f64;
///
/// let difference = a.pown(b) - 2.0;
/// let difference = a.pown(b);
///
/// assert(difference < 1e-10);
/// assert(difference > 3.9f64);
/// ```
fn pown(self, n: Self) -> Self;