Skip to content

Commit d4e56d1

Browse files
6.4 Operator Precedence: Add a few more words for better understanding
1 parent 64afc69 commit d4e56d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/boolean/operator_precedence.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ boolean c = false;
1414
1515
// just as 2 + 5 * 3 "evaluates" 5 * 3 before adding 2
1616
// first, !b is true
17-
// second, a && true is true
18-
// third true || c is true.
17+
// second, a && !b becomes a && true that is true
18+
// third a && !b || c becomes true || c that is true.
1919
boolean result = a && !b || c;
2020
```
2121

0 commit comments

Comments
 (0)