Skip to content

Commit 86c48f0

Browse files
committed
doc: s/again/loop
1 parent 0dd4fad commit 86c48f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/rust.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,19 +2042,19 @@ break_expr : "break" ;
20422042
Executing a `break` expression immediately terminates the innermost loop
20432043
enclosing it. It is only permitted in the body of a loop.
20442044

2045-
### Again expressions
2045+
### Loop expressions
20462046

20472047
~~~~~~~~{.ebnf .gram}
2048-
again_expr : "again" ;
2048+
again_expr : "loop" ;
20492049
~~~~~~~~
20502050

2051-
Evaluating an `again` expression immediately terminates the current iteration of
2051+
Evaluating a `loop` expression immediately terminates the current iteration of
20522052
the innermost loop enclosing it, returning control to the loop *head*. In the
20532053
case of a `while` loop, the head is the conditional expression controlling the
20542054
loop. In the case of a `for` loop, the head is the call-expression controlling
20552055
the loop.
20562056

2057-
An `again` expression is only permitted in the body of a loop.
2057+
A `loop` expression is only permitted in the body of a loop.
20582058

20592059

20602060
### For expressions

0 commit comments

Comments
 (0)