mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 00:52:02 -04:00
Clarify short-circuiting behavior
This commit is contained in:
@@ -24,7 +24,7 @@ overload that operator is listed.
|
||||
| `&` | `&type`, `&mut type`, `&'a type`, `&'a mut type` | Borrowed pointer type | |
|
||||
| `&` | `expr & expr` | Bitwise AND | `BitAnd` |
|
||||
| `&=` | `var &= expr` | Bitwise AND and assignment | `BitAndAssign` |
|
||||
| `&&` | `expr && expr` | Logical AND | |
|
||||
| `&&` | `expr && expr` | Short-circuiting logical AND | |
|
||||
| `*` | `expr * expr` | Arithmetic multiplication | `Mul` |
|
||||
| `*=` | `var *= expr` | Arithmetic multiplication and assignment | `MulAssign` |
|
||||
| `*` | `*expr` | Dereference | |
|
||||
@@ -67,7 +67,7 @@ overload that operator is listed.
|
||||
| <code>|</code> | <code>pat | pat</code> | Pattern alternatives | |
|
||||
| <code>|</code> | <code>expr | expr</code> | Bitwise OR | `BitOr` |
|
||||
| <code>|=</code> | <code>var |= expr</code> | Bitwise OR and assignment | `BitOrAssign` |
|
||||
| <code>||</code> | <code>expr || expr</code> | Logical OR | |
|
||||
| <code>||</code> | <code>expr || expr</code> | Short-circuiting logical OR | |
|
||||
| `?` | `expr?` | Error propagation | |
|
||||
|
||||
### Non-operator Symbols
|
||||
|
||||
Reference in New Issue
Block a user