File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1030,7 +1030,7 @@ impl f32 {
1030
1030
/// let abs_difference_1 = (f.1 - x.cos()).abs();
1031
1031
///
1032
1032
/// assert!(abs_difference_0 <= f32::EPSILON);
1033
- /// assert!(abs_difference_0 <= f32::EPSILON);
1033
+ /// assert!(abs_difference_1 <= f32::EPSILON);
1034
1034
/// ```
1035
1035
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1036
1036
#[ inline]
Original file line number Diff line number Diff line change @@ -903,7 +903,7 @@ impl f64 {
903
903
/// let abs_difference_1 = (f.1 - x.cos()).abs();
904
904
///
905
905
/// assert!(abs_difference_0 < 1e-10);
906
- /// assert!(abs_difference_0 < 1e-10);
906
+ /// assert!(abs_difference_1 < 1e-10);
907
907
/// ```
908
908
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
909
909
#[ inline]
You can’t perform that action at this time.
0 commit comments