diff options
| author | Matthias Kaak <matthias.kaak@smartflyer.de> | 2023-01-27 21:01:07 +0000 |
|---|---|---|
| committer | Matthias Kaak <matthias.kaak@smartflyer.de> | 2023-01-27 21:01:07 +0000 |
| commit | e02517d753bae44b2150aa23ab3bca694097ac96 (patch) | |
| tree | 5f22bdf440d54ef1ad1fd8301fe9d3ed6f9322c4 /library/core/src | |
| parent | 7919ef0ec5776c72dace7fec1c68551a617505ad (diff) | |
| download | rust-e02517d753bae44b2150aa23ab3bca694097ac96.tar.gz rust-e02517d753bae44b2150aa23ab3bca694097ac96.zip | |
Fixed confusement between mod and remainder
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/ops/arith.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ops/arith.rs b/library/core/src/ops/arith.rs index 75c52d3ecfc..b9803c957b1 100644 --- a/library/core/src/ops/arith.rs +++ b/library/core/src/ops/arith.rs @@ -545,7 +545,7 @@ div_impl_float! { f32 f64 } #[lang = "rem"] #[stable(feature = "rust1", since = "1.0.0")] #[rustc_on_unimplemented( - message = "cannot mod `{Self}` by `{Rhs}`", + message = "cannot rem `{Self}` by `{Rhs}`", label = "no implementation for `{Self} % {Rhs}`" )] #[doc(alias = "%")] @@ -981,7 +981,7 @@ div_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 } #[lang = "rem_assign"] #[stable(feature = "op_assign_traits", since = "1.8.0")] #[rustc_on_unimplemented( - message = "cannot mod-assign `{Self}` by `{Rhs}``", + message = "cannot rem-assign `{Self}` by `{Rhs}``", label = "no implementation for `{Self} %= {Rhs}`" )] #[doc(alias = "%")] |
