Skip to content

Commit

Permalink
Use wrapping_div call and correct the feature name
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnes committed Jul 8, 2015
1 parent e333a57 commit a89b3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/num/wrapping.rs
Expand Up @@ -119,13 +119,13 @@ macro_rules! wrapping_impl {
}
}

#[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))
}
}

Expand Down

0 comments on commit a89b3ea

Please sign in to comment.