diff --git a/src/float.rs b/src/float.rs index 4004593..c334ac5 100644 --- a/src/float.rs +++ b/src/float.rs @@ -1915,7 +1915,7 @@ pub trait CommonFloat where Self: Num + Copy + NumCast + Neg { /// let a = 4.0; /// let b = 0.5; /// - /// let difference = self.pown(a) - 2.0; + /// let difference = a.pown(b) - 2.0; /// /// assert(difference < 1e-10); /// ```