Skip to content

Commit 642b19a

Browse files
authored
The not operator was missing in the list of the order of operations. (#1355)
* Remove obsolete operators `||` and `&&` * Experientially found the position of order of `not`
1 parent da053ac commit 642b19a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/operators.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ Operations are evaluated in the following order (from highest precedence to lowe
5050
- Bitwise and (`bit-and`)
5151
- Bitwise xor (`bit-xor`)
5252
- Bitwise or (`bit-or`)
53-
- Logical and (`&&`, `and`)
53+
- Logical not (`not`)
54+
- Logical and (`and`)
5455
- Logical xor (`xor`)
55-
- Logical or (`||`, `or`)
56+
- Logical or (`or`)
5657
- Assignment operations
5758

5859
```

0 commit comments

Comments
 (0)