]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/num/mod.rs
Replace occurences of illegal in user facing docs
[rust.git] / src / libcore / num / mod.rs
index bfbb2ded0782dbf4e177d35b00cca42e70e581e2..ad891bf8fa6239e35b9359856e2e3cb42186abca 100644 (file)
@@ -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)]