File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,8 @@ The operands of all of these operators are evaluated in [value expression contex
243
243
| ` + ` | Addition | | Addition | ` std::ops::Add ` | ` std::ops::AddAssign ` |
244
244
| ` - ` | Subtraction | | Subtraction | ` std::ops::Sub ` | ` std::ops::SubAssign ` |
245
245
| ` * ` | Multiplication | | Multiplication | ` std::ops::Mul ` | ` std::ops::MulAssign ` |
246
- | ` / ` | Division* | | Division | ` std::ops::Div ` | ` std::ops::DivAssign ` |
247
- | ` % ` | Remainder** | | Remainder | ` std::ops::Rem ` | ` std::ops::RemAssign ` |
246
+ | ` / ` | Division* † | | Division | ` std::ops::Div ` | ` std::ops::DivAssign ` |
247
+ | ` % ` | Remainder** † | | Remainder | ` std::ops::Rem ` | ` std::ops::RemAssign ` |
248
248
| ` & ` | Bitwise AND | [ Logical AND] | | ` std::ops::BitAnd ` | ` std::ops::BitAndAssign ` |
249
249
| <code >| ; </code > | Bitwise OR | [ Logical OR] | | ` std::ops::BitOr ` | ` std::ops::BitOrAssign ` |
250
250
| ` ^ ` | Bitwise XOR | [ Logical XOR] | | ` std::ops::BitXor ` | ` std::ops::BitXorAssign ` |
@@ -258,6 +258,8 @@ The operands of all of these operators are evaluated in [value expression contex
258
258
\*\*\* Arithmetic right shift on signed integer types, logical right shift on
259
259
unsigned integer types.
260
260
261
+ † Division by zero panics.
262
+
261
263
Here are examples of these operators being used.
262
264
263
265
``` rust
You can’t perform that action at this time.
0 commit comments