Use wrapping_div call and correct the feature name

This commit is contained in:
Mathijs van de Nes 2015-07-08 15:44:50 +02:00
parent e333a57a19
commit a89b3ea3fc

View file

@ -119,13 +119,13 @@ fn mul(self, other: Wrapping<$t>) -> Wrapping<$t> {
}
}
#[stable(feature = "rust1", since = "1.3.0")]
#[stable(feature = "wrapping_div", since = "1.3.0")]
impl Div for Wrapping<$t> {
type Output = Wrapping<$t>;
#[inline(always)]
fn div(self, other: Wrapping<$t>) -> Wrapping<$t> {
Wrapping(self.0 / other.0)
Wrapping(self.0.wrapping_div(other.0))
}
}