diff options
| author | bors <bors@rust-lang.org> | 2015-07-13 07:03:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-07-13 07:03:01 +0000 |
| commit | 5f552a5da53e8164a13c337b6cbe39c3f20f35ff (patch) | |
| tree | af54c4702de2ecf271b0f6f8cf89f1c91b591758 /src/libcore/num | |
| parent | c044791d80ea0dc5c4b57b6030a67b69f8510239 (diff) | |
| parent | 7824956effbfaccea5f6ce0b973c26cb58d241f9 (diff) | |
| download | rust-5f552a5da53e8164a13c337b6cbe39c3f20f35ff.tar.gz rust-5f552a5da53e8164a13c337b6cbe39c3f20f35ff.zip | |
Auto merge of #26981 - wthrowe:div_docs, r=Gankro
This resolves #26845. I'm not entirely satisfied with the placement of the rounding discussion in the docs for the `Div` and `Rem` traits, but I couldn't come up with anywhere better to put it. Suggestions are welcome. I didn't add any discussion of rounding to the `checked_div` (or rem) or `wrapping_div` documentation because those seem to make it pretty clear that they do the same thing as `Div`.
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 3fd3d4a42b2..6413cc36d26 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -459,7 +459,7 @@ macro_rules! int_impl { } } - /// Wrapping (modular) division. Computes `floor(self / other)`, + /// Wrapping (modular) division. Computes `self / other`, /// wrapping around at the boundary of the type. /// /// The only case where such wrapping can occur is when one @@ -467,7 +467,7 @@ macro_rules! int_impl { /// negative minimal value for the type); this is equivalent /// to `-MIN`, a positive value that is too large to represent /// in the type. In such a case, this function returns `MIN` - /// itself.. + /// itself. #[stable(feature = "num_wrapping", since = "1.2.0")] #[inline(always)] pub fn wrapping_div(self, rhs: Self) -> Self { @@ -1031,7 +1031,7 @@ macro_rules! uint_impl { } } - /// Wrapping (modular) division. Computes `floor(self / other)`, + /// Wrapping (modular) division. Computes `self / other`, /// wrapping around at the boundary of the type. /// /// The only case where such wrapping can occur is when one @@ -1039,7 +1039,7 @@ macro_rules! uint_impl { /// negative minimal value for the type); this is equivalent /// to `-MIN`, a positive value that is too large to represent /// in the type. In such a case, this function returns `MIN` - /// itself.. + /// itself. #[stable(feature = "num_wrapping", since = "1.2.0")] #[inline(always)] pub fn wrapping_div(self, rhs: Self) -> Self { |
