diff --git a/concepts/booleans/introduction.md b/concepts/booleans/introduction.md index 9335fbe3..16ea41b2 100644 --- a/concepts/booleans/introduction.md +++ b/concepts/booleans/introduction.md @@ -23,7 +23,7 @@ If `x` was 3 they would both be `true`. We can express statements like "is x less than 5 and not equal to y?" using [Boolean operators][boolean-operators]: `!` (not), `&&` (and), `||` (or). In Julia (and many other programming languages), `&&` has a [higher precedence][operator-precedence] than `||` (in the same way that `*` is applied before `+`). -This means that `true || false && true` evaluates to `true` because it is parsed as `(true || false) && true`. +This means that `true || false && true` evaluates to `true` because it is parsed as `true || (false && true)`. It is common to include explicit brackets anyway so that the reader doesn't need to think about this. ### Logical _not_