Skip to content

Commit a89b3ea

Browse files
committed
Use wrapping_div call and correct the feature name
1 parent e333a57 commit a89b3ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/wrapping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ macro_rules! wrapping_impl {
119119
}
120120
}
121121

122-
#[stable(feature = "rust1", since = "1.3.0")]
122+
#[stable(feature = "wrapping_div", since = "1.3.0")]
123123
impl Div for Wrapping<$t> {
124124
type Output = Wrapping<$t>;
125125

126126
#[inline(always)]
127127
fn div(self, other: Wrapping<$t>) -> Wrapping<$t> {
128-
Wrapping(self.0 / other.0)
128+
Wrapping(self.0.wrapping_div(other.0))
129129
}
130130
}
131131

0 commit comments

Comments
 (0)