Skip to content

Commit 2e1d46a

Browse files
committed
More precise language in Chapter 2 section on 'if'
1 parent b4e5c3b commit 2e1d46a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

02_program_structure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ if (num < 10) {
461461
The program will first check whether `num` is less than 10. If it is,
462462
it chooses that branch, shows `"Small"`, and is done. If it isn't, it
463463
takes the `else` branch, which itself contains a second `if`. If the
464-
second condition (`< 100`) holds, that means the number is between 10
465-
and 100, and `"Medium"` is shown. If it doesn't, the second and last
466-
`else` branch is chosen.
464+
second condition (`< 100`) holds, that means the number is at least 10
465+
but below 100, and `"Medium"` is shown. If it doesn't, the second and
466+
last `else` branch is chosen.
467467

468468
The schema for this program looks something like this:
469469

0 commit comments

Comments
 (0)