Merge pull request #346 from mhintz/angle-fix

Minor documentation fix - cotangent and secant were swapped
This commit is contained in:
Brendan Zabarauskas 2016-04-28 07:32:00 +10:00
commit 61681037b9

View file

@ -672,7 +672,7 @@ pub trait Angle where
Self::sin(self).recip() Self::sin(self).recip()
} }
/// Compute the secant of the angle. /// Compute the cotangent of the angle.
/// ///
/// This is the same as computing the reciprocal of `Self::tan`. /// This is the same as computing the reciprocal of `Self::tan`.
/// ///
@ -688,7 +688,7 @@ pub trait Angle where
Self::tan(self).recip() Self::tan(self).recip()
} }
/// Compute the cotatangent of the angle. /// Compute the secant of the angle.
/// ///
/// This is the same as computing the reciprocal of `Self::cos`. /// This is the same as computing the reciprocal of `Self::cos`.
/// ///