Commit 36312c6
authored
Update introduction.md (#2479)
Previously, the comment implied that the loop executes only when the condition is true,
which is misleading for a do-while loop.
Updated the comment to clearly reflect that the loop body executes at least once
before the condition (x > 10) is evaluated, and continues only if the condition remains true.
This improves readability and helps avoid confusion between while and do-while behavior.1 parent 266f814 commit 36312c6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
0 commit comments