The second code block in a do while loop isn't optional

This commit is contained in:
Kyler 2024-03-06 00:02:43 -07:00
parent cc7a59bad0
commit c62122b0e3
1 changed files with 3 additions and 4 deletions

View File

@ -246,10 +246,9 @@ optionally be followed by an `else block`.
A `do loop` begins with the `do` keyword, followed by a single `statement` or a
list enclosed in curly braces (`{` and `}`) of `statements`. It is then followed
with the `while` keyword, then by its condition, an `expression` enclosed in
parentheses (`(` and `)`). It may then optionally be followed by a single
`statement` or another list enclosed in curly braces (`{` and `}`) of
`statements`. Finally the `do loop` may optionally be followed by an
`else block`.
parentheses (`(` and `)`). It is then followed by a single `statement` or
another list enclosed in curly braces (`{` and `}`) of `statements`. Finally
the `do loop` may optionally be followed by an `else block`.
#### While Loop