mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
increase clarity for order of operations for NOT
This commit is contained in:
parent
dc8cdecd05
commit
9c3666c5e3
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ or : Bool, Bool -> Bool
|
||||||
## equivalent to the logic [NOT](https://en.wikipedia.org/wiki/Negation)
|
## equivalent to the logic [NOT](https://en.wikipedia.org/wiki/Negation)
|
||||||
## gate. The operator `!` can also be used as shorthand for `Bool.not`.
|
## gate. The operator `!` can also be used as shorthand for `Bool.not`.
|
||||||
##
|
##
|
||||||
## expect Bool.not Bool.false == Bool.true
|
## expect (Bool.not Bool.false) == Bool.true
|
||||||
## expect !Bool.true == Bool.false
|
## expect (!Bool.false) == Bool.true
|
||||||
not : Bool -> Bool
|
not : Bool -> Bool
|
||||||
|
|
||||||
## This will call the function `Bool.isEq` on the inputs, and then `Bool.not`
|
## This will call the function `Bool.isEq` on the inputs, and then `Bool.not`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue