File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,11 @@ impl f32 {
7777 /// ```
7878 /// let f = 3.3_f32;
7979 /// let g = -3.3_f32;
80+ /// let h = -3.7_f32;
8081 ///
8182 /// assert_eq!(f.round(), 3.0);
8283 /// assert_eq!(g.round(), -3.0);
84+ /// assert_eq!(h.round(), -4.0);
8385 /// ```
8486 #[ rustc_allow_incoherent_impl]
8587 #[ must_use = "method returns a new number and does not mutate the original value" ]
Original file line number Diff line number Diff line change @@ -77,9 +77,11 @@ impl f64 {
7777 /// ```
7878 /// let f = 3.3_f64;
7979 /// let g = -3.3_f64;
80+ /// let h = -3.7_f64;
8081 ///
8182 /// assert_eq!(f.round(), 3.0);
8283 /// assert_eq!(g.round(), -3.0);
84+ /// assert_eq!(h.round(), -4.0);
8385 /// ```
8486 #[ rustc_allow_incoherent_impl]
8587 #[ must_use = "method returns a new number and does not mutate the original value" ]
You can’t perform that action at this time.
0 commit comments