File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,10 @@ impl f32 {
131
131
/// ```
132
132
/// use std::f32;
133
133
///
134
- /// let x = 3.5_f32 ;
135
- /// let y = -3.5_f32 ;
136
- /// let abs_difference_x = (x.fract() - 0.5 ).abs();
137
- /// let abs_difference_y = (y.fract() - (-0.5 )).abs();
134
+ /// let x = 3.6_f32 ;
135
+ /// let y = -3.6_f32 ;
136
+ /// let abs_difference_x = (x.fract() - 0.6 ).abs();
137
+ /// let abs_difference_y = (y.fract() - (-0.6 )).abs();
138
138
///
139
139
/// assert!(abs_difference_x <= f32::EPSILON);
140
140
/// assert!(abs_difference_y <= f32::EPSILON);
Original file line number Diff line number Diff line change @@ -109,10 +109,10 @@ impl f64 {
109
109
/// # Examples
110
110
///
111
111
/// ```
112
- /// let x = 3.5_f64 ;
113
- /// let y = -3.5_f64 ;
112
+ /// let x = 3.6_f64 ;
113
+ /// let y = -3.6_f64 ;
114
114
/// let abs_difference_x = (x.fract() - 0.5).abs();
115
- /// let abs_difference_y = (y.fract() - (-0.5 )).abs();
115
+ /// let abs_difference_y = (y.fract() - (-0.6 )).abs();
116
116
///
117
117
/// assert!(abs_difference_x < 1e-10);
118
118
/// assert!(abs_difference_y < 1e-10);
You can’t perform that action at this time.
0 commit comments