Fix f32::sin_cos and f64::sin_cos examples

This commit is contained in:
Maxim Samburskiy 2016-04-16 11:42:37 +05:00
parent fef6c64a80
commit c1db18b54e
2 changed files with 2 additions and 2 deletions

View File

@ -1030,7 +1030,7 @@ impl f32 {
/// let abs_difference_1 = (f.1 - x.cos()).abs(); /// let abs_difference_1 = (f.1 - x.cos()).abs();
/// ///
/// assert!(abs_difference_0 <= f32::EPSILON); /// assert!(abs_difference_0 <= f32::EPSILON);
/// assert!(abs_difference_0 <= f32::EPSILON); /// assert!(abs_difference_1 <= f32::EPSILON);
/// ``` /// ```
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[inline] #[inline]

View File

@ -903,7 +903,7 @@ impl f64 {
/// let abs_difference_1 = (f.1 - x.cos()).abs(); /// let abs_difference_1 = (f.1 - x.cos()).abs();
/// ///
/// assert!(abs_difference_0 < 1e-10); /// assert!(abs_difference_0 < 1e-10);
/// assert!(abs_difference_0 < 1e-10); /// assert!(abs_difference_1 < 1e-10);
/// ``` /// ```
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[inline] #[inline]