about summary refs log tree commit diff
path: root/library/core/src/num/f32.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/num/f32.rs')
-rw-r--r--library/core/src/num/f32.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs
index bf923d4070a..b460c7d0205 100644
--- a/library/core/src/num/f32.rs
+++ b/library/core/src/num/f32.rs
@@ -1879,7 +1879,7 @@ pub mod math {
     ///
     /// let x = 2.0_f32;
     /// let abs_difference = (f32::math::powi(x, 2) - (x * x)).abs();
-    /// assert!(abs_difference <= f32::EPSILON);
+    /// assert!(abs_difference <= 1e-5);
     ///
     /// assert_eq!(f32::math::powi(f32::NAN, 0), 1.0);
     /// ```