From 9c3666c5e37ab75c965e2227fef47a8f251633c6 Mon Sep 17 00:00:00 2001 From: Luke Boswell Date: Mon, 24 Oct 2022 20:06:19 +1100 Subject: [PATCH] increase clarity for order of operations for NOT --- crates/compiler/builtins/roc/Bool.roc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/compiler/builtins/roc/Bool.roc b/crates/compiler/builtins/roc/Bool.roc index 8a8f1608d7..560e5552f1 100644 --- a/crates/compiler/builtins/roc/Bool.roc +++ b/crates/compiler/builtins/roc/Bool.roc @@ -90,8 +90,8 @@ or : Bool, Bool -> Bool ## equivalent to the logic [NOT](https://en.wikipedia.org/wiki/Negation) ## gate. The operator `!` can also be used as shorthand for `Bool.not`. ## -## expect Bool.not Bool.false == Bool.true -## expect !Bool.true == Bool.false +## expect (Bool.not Bool.false) == Bool.true +## expect (!Bool.false) == Bool.true not : Bool -> Bool ## This will call the function `Bool.isEq` on the inputs, and then `Bool.not`