Skip to content

Commit b7886fd

Browse files
authored
Update operators.md
logical not - higher precedence than and/xor/or, comparison.
1 parent 5f49010 commit b7886fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Presented in descending order of precedence, the article details the operations
4848
- Multiply (`*`), Divide (`/`), Integer/Floor Division (`//`), and Modulo (`mod`)
4949
- Add (`+`) and Subtract (`-`)
5050
- Bit shifting (`bit-shl`, `bit-shr`)
51+
- Logical not (`not`)
5152
- Comparison operations (`==`, `!=`, `<`, `>`, `<=`, `>=`), membership tests (`in`, `not-in`, `starts-with`, `ends-with`), regex matching (`=~`, `!~`), and list appending (`++`)
5253
- Bitwise and (`bit-and`)
5354
- Bitwise xor (`bit-xor`)
@@ -56,7 +57,6 @@ Presented in descending order of precedence, the article details the operations
5657
- Logical xor (`xor`)
5758
- Logical or (`or`)
5859
- Assignment operations
59-
- Logical not (`not`)
6060

6161
```
6262
3 * (1 + 2)

0 commit comments

Comments
 (0)