X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibcore%2Fnum%2Fmod.rs;h=ad891bf8fa6239e35b9359856e2e3cb42186abca;hb=91397a6aa33d16cb367f181a1174e80895e46780;hp=bfbb2ded0782dbf4e177d35b00cca42e70e581e2;hpb=cf7e825ecdb00023f481e5648b356d40b606fa35;p=rust.git diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index bfbb2ded078..ad891bf8fa6 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -479,8 +479,8 @@ pub fn wrapping_div(self, rhs: Self) -> Self { /// wrapping around at the boundary of the type. /// /// Such wrap-around never actually occurs mathematically; - /// implementation artifacts make `x % y` illegal for `MIN / - /// -1` on a signed type illegal (where `MIN` is the negative + /// implementation artifacts make `x % y` invalid for `MIN / + /// -1` on a signed type (where `MIN` is the negative /// minimal value). In such a case, this function returns `0`. #[stable(feature = "num_wrapping", since = "1.2.0")] #[inline(always)] @@ -1051,8 +1051,8 @@ pub fn wrapping_div(self, rhs: Self) -> Self { /// wrapping around at the boundary of the type. /// /// Such wrap-around never actually occurs mathematically; - /// implementation artifacts make `x % y` illegal for `MIN / - /// -1` on a signed type illegal (where `MIN` is the negative + /// implementation artifacts make `x % y` invalid for `MIN / + /// -1` on a signed type (where `MIN` is the negative /// minimal value). In such a case, this function returns `0`. #[stable(feature = "num_wrapping", since = "1.2.0")] #[inline(always)]