File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -851,6 +851,8 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
851
851
852
852
#[ stable( feature = "nonzero_div_assign" , since = "CURRENT_RUSTC_VERSION" ) ]
853
853
impl DivAssign <$Ty> for $Int {
854
+ /// This operation rounds towards zero,
855
+ /// truncating any fractional part of the exact result, and cannot panic.
854
856
#[ inline]
855
857
fn div_assign( & mut self , other: $Ty) {
856
858
* self = * self / other;
@@ -872,6 +874,7 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
872
874
873
875
#[ stable( feature = "nonzero_div_assign" , since = "CURRENT_RUSTC_VERSION" ) ]
874
876
impl RemAssign <$Ty> for $Int {
877
+ /// This operation satisfies `n % d == n - (n / d) * d`, and cannot panic.
875
878
#[ inline]
876
879
fn rem_assign( & mut self , other: $Ty) {
877
880
* self = * self % other;
You can’t perform that action at this time.
0 commit comments