@@ -1050,9 +1050,9 @@ $EndFeature, "
1050
1050
concat!( "Wrapping Euclidean division. Computes `self.div_euc(rhs)`,
1051
1051
wrapping around at the boundary of the type.
1052
1052
1053
- The only case where such wrapping can occur is when one divides `MIN / -1` on a signed type (where
1054
- `MIN` is the negative minimal value for the type); this is equivalent to `-MIN`, a positive value
1055
- that is too large to represent in the type. In such a case, this function returns `MIN` itself.
1053
+ Wrapping will only occur in `MIN / -1` on a signed type (where `MIN` is the negative minimal value
1054
+ for the type). This is equivalent to `-MIN`, a positive value that is too large to represent in the
1055
+ type. In this case, this method returns `MIN` itself.
1056
1056
1057
1057
# Panics
1058
1058
@@ -1106,9 +1106,8 @@ $EndFeature, "
1106
1106
concat!( "Wrapping Euclidean modulo. Computes `self.mod_euc(rhs)`, wrapping around at the
1107
1107
boundary of the type.
1108
1108
1109
- Such wrap-around never actually occurs mathematically; implementation artifacts make `x % y`
1110
- invalid for `MIN / -1` on a signed type (where `MIN` is the negative minimal value). In such a case,
1111
- this function returns `0`.
1109
+ Wrapping will only occur in `MIN % -1` on a signed type (where `MIN` is the negative minimal value
1110
+ for the type). In this case, this method returns 0.
1112
1111
1113
1112
# Panics
1114
1113
@@ -1399,7 +1398,7 @@ $EndFeature, "
1399
1398
concat!( "Calculates the quotient of Euclidean division `self.div_euc(rhs)`.
1400
1399
1401
1400
Returns a tuple of the divisor along with a boolean indicating whether an arithmetic overflow would
1402
- occur. If an overflow would occur then self is returned.
1401
+ occur. If an overflow would occur then ` self` is returned.
1403
1402
1404
1403
# Panics
1405
1404
0 commit comments