From b7886fdd8d4b98a8420b1fcae948321155c38f12 Mon Sep 17 00:00:00 2001 From: Jesper Olsen <43079279+jesper-olsen@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:16:32 -0600 Subject: [PATCH] Update operators.md logical not - higher precedence than and/xor/or, comparison. --- book/operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/operators.md b/book/operators.md index 14a1eb33ba..f682e8db09 100644 --- a/book/operators.md +++ b/book/operators.md @@ -48,6 +48,7 @@ Presented in descending order of precedence, the article details the operations - Multiply (`*`), Divide (`/`), Integer/Floor Division (`//`), and Modulo (`mod`) - Add (`+`) and Subtract (`-`) - Bit shifting (`bit-shl`, `bit-shr`) +- Logical not (`not`) - Comparison operations (`==`, `!=`, `<`, `>`, `<=`, `>=`), membership tests (`in`, `not-in`, `starts-with`, `ends-with`), regex matching (`=~`, `!~`), and list appending (`++`) - Bitwise and (`bit-and`) - Bitwise xor (`bit-xor`) @@ -56,7 +57,6 @@ Presented in descending order of precedence, the article details the operations - Logical xor (`xor`) - Logical or (`or`) - Assignment operations -- Logical not (`not`) ``` 3 * (1 + 2)