File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,10 @@ impl f32 {
131131 /// ```
132132 /// use std::f32;
133133 ///
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();
138138 ///
139139 /// assert!(abs_difference_x <= f32::EPSILON);
140140 /// assert!(abs_difference_y <= f32::EPSILON);
Original file line number Diff line number Diff line change @@ -109,10 +109,10 @@ impl f64 {
109109 /// # Examples
110110 ///
111111 /// ```
112- /// let x = 3.5_f64 ;
113- /// let y = -3.5_f64 ;
112+ /// let x = 3.6_f64 ;
113+ /// let y = -3.6_f64 ;
114114 /// 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();
116116 ///
117117 /// assert!(abs_difference_x < 1e-10);
118118 /// assert!(abs_difference_y < 1e-10);
You can’t perform that action at this time.
0 commit comments