diff options
| author | Maxim Samburskiy <samburskiy.maxim@gmail.com> | 2016-04-16 11:42:37 +0500 |
|---|---|---|
| committer | Maxim Samburskiy <samburskiy.maxim@gmail.com> | 2016-04-16 11:42:37 +0500 |
| commit | c1db18b54ef123b5db4e13ab00e682deff1a1e69 (patch) | |
| tree | c164e6b55a88499e62f7a5d43bdade38d03c98ea /src/libstd | |
| parent | fef6c64a8020c357dda902593f1065864564c079 (diff) | |
| download | rust-c1db18b54ef123b5db4e13ab00e682deff1a1e69.tar.gz rust-c1db18b54ef123b5db4e13ab00e682deff1a1e69.zip | |
Fix f32::sin_cos and f64::sin_cos examples
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/num/f32.rs | 2 | ||||
| -rw-r--r-- | src/libstd/num/f64.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/f32.rs b/src/libstd/num/f32.rs index 6fc26bb7eed..624748f352e 100644 --- a/src/libstd/num/f32.rs +++ b/src/libstd/num/f32.rs @@ -1030,7 +1030,7 @@ impl f32 { /// let abs_difference_1 = (f.1 - x.cos()).abs(); /// /// 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")] #[inline] diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs index 93e5969a275..6515301aefd 100644 --- a/src/libstd/num/f64.rs +++ b/src/libstd/num/f64.rs @@ -903,7 +903,7 @@ impl f64 { /// let abs_difference_1 = (f.1 - x.cos()).abs(); /// /// 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")] #[inline] |
