diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2015-07-28 17:53:50 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2015-07-28 17:55:44 +0300 |
| commit | 91397a6aa33d16cb367f181a1174e80895e46780 (patch) | |
| tree | 841d64c9b06de17c4e3c49963a326b0d2f310f4e /src/libcore/num | |
| parent | cf7e825ecdb00023f481e5648b356d40b606fa35 (diff) | |
| download | rust-91397a6aa33d16cb367f181a1174e80895e46780.tar.gz rust-91397a6aa33d16cb367f181a1174e80895e46780.zip | |
Replace occurences of illegal in user facing docs
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ macro_rules! int_impl { /// 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 @@ macro_rules! uint_impl { /// 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)] |
