Skip to content

Commit ca4e458

Browse files
committed
Address more nits.
1 parent c0870e2 commit ca4e458

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/libcore/num/mod.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -1050,9 +1050,9 @@ $EndFeature, "
10501050
concat!("Wrapping Euclidean division. Computes `self.div_euc(rhs)`,
10511051
wrapping around at the boundary of the type.
10521052
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.
10561056
10571057
# Panics
10581058
@@ -1106,9 +1106,8 @@ $EndFeature, "
11061106
concat!("Wrapping Euclidean modulo. Computes `self.mod_euc(rhs)`, wrapping around at the
11071107
boundary of the type.
11081108
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.
11121111
11131112
# Panics
11141113
@@ -1399,7 +1398,7 @@ $EndFeature, "
13991398
concat!("Calculates the quotient of Euclidean division `self.div_euc(rhs)`.
14001399
14011400
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.
14031402
14041403
# Panics
14051404

0 commit comments

Comments
 (0)