File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,11 @@ impl f32 {
77
77
/// ```
78
78
/// let f = 3.3_f32;
79
79
/// let g = -3.3_f32;
80
+ /// let h = -3.7_f32;
80
81
///
81
82
/// assert_eq!(f.round(), 3.0);
82
83
/// assert_eq!(g.round(), -3.0);
84
+ /// assert_eq!(h.round(), -4.0);
83
85
/// ```
84
86
#[ rustc_allow_incoherent_impl]
85
87
#[ 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 {
77
77
/// ```
78
78
/// let f = 3.3_f64;
79
79
/// let g = -3.3_f64;
80
+ /// let h = -3.7_f64;
80
81
///
81
82
/// assert_eq!(f.round(), 3.0);
82
83
/// assert_eq!(g.round(), -3.0);
84
+ /// assert_eq!(h.round(), -4.0);
83
85
/// ```
84
86
#[ rustc_allow_incoherent_impl]
85
87
#[ 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