Skip to content

Commit 2bb141c

Browse files
committed
manual: remove mention of do-while loops.
1 parent 04e6b09 commit 2bb141c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/rust.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,8 +1986,7 @@ let x: int = add(1, 2);
19861986
### While loops
19871987

19881988
~~~~~~~~{.ebnf .gram}
1989-
while_expr : "while" expr '{' block '}'
1990-
| "do" '{' block '}' "while" expr ;
1989+
while_expr : "while" expr '{' block '}' ;
19911990
~~~~~~~~
19921991

19931992
A `while` loop begins by evaluating the boolean loop conditional expression.

0 commit comments

Comments
 (0)