@@ -44,8 +44,8 @@ and blocks again can recursively nest inside each other to an arbitrary depth.
44
44
## Expression precedence
45
45
46
46
The precedence of Rust operators and expressions is ordered as follows, going
47
- from strong to weak. Binary Operators at the same precedence level are
48
- evaluated in the order given by their associativity.
47
+ from strong to weak. Binary Operators at the same precedence level are grouped
48
+ in the order given by their associativity.
49
49
50
50
| Operator/Expression | Associativity |
51
51
| -----------------------------| ---------------------|
@@ -55,7 +55,7 @@ evaluated in the order given by their associativity.
55
55
| Function calls, array indexing | |
56
56
| ` ? ` | |
57
57
| Unary ` - ` ` * ` ` ! ` ` & ` ` &mut ` | |
58
- | ` as ` ` : ` | left to right |
58
+ | ` as ` | left to right |
59
59
| ` * ` ` / ` ` % ` | left to right |
60
60
| ` + ` ` - ` | left to right |
61
61
| ` << ` ` >> ` | left to right |
@@ -66,7 +66,6 @@ evaluated in the order given by their associativity.
66
66
| ` && ` | left to right |
67
67
| <code >| ;| ; </code > | left to right |
68
68
| ` .. ` ` ..= ` | Require parentheses |
69
- | ` <- ` | right to left |
70
69
| ` = ` ` += ` ` -= ` ` *= ` ` /= ` ` %= ` <br > ` &= ` <code >| ; =</code > ` ^= ` ` <<= ` ` >>= ` | right to left |
71
70
| ` return ` ` break ` closures | |
72
71
0 commit comments