diff --git a/doc/rust.md b/doc/rust.md index db2cc800556..8db0d9ffdbf 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1986,8 +1986,7 @@ let x: int = add(1, 2); ### While loops ~~~~~~~~{.ebnf .gram} -while_expr : "while" expr '{' block '}' - | "do" '{' block '}' "while" expr ; +while_expr : "while" expr '{' block '}' ; ~~~~~~~~ A `while` loop begins by evaluating the boolean loop conditional expression.