Fix f32::sin_cos and f64::sin_cos examples
This commit is contained in:
parent
fef6c64a80
commit
c1db18b54e
@ -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]
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user