From 86c48f03d135425a16ead78255d579b8fc7aec24 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 20 Sep 2012 05:58:13 -0700 Subject: [PATCH] doc: s/again/loop --- doc/rust.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index 1604188bf5a..c2efe7c67dd 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -2042,19 +2042,19 @@ break_expr : "break" ; Executing a `break` expression immediately terminates the innermost loop enclosing it. It is only permitted in the body of a loop. -### Again expressions +### Loop expressions ~~~~~~~~{.ebnf .gram} -again_expr : "again" ; +again_expr : "loop" ; ~~~~~~~~ -Evaluating an `again` expression immediately terminates the current iteration of +Evaluating a `loop` expression immediately terminates the current iteration of the innermost loop enclosing it, returning control to the loop *head*. In the case of a `while` loop, the head is the conditional expression controlling the loop. In the case of a `for` loop, the head is the call-expression controlling the loop. -An `again` expression is only permitted in the body of a loop. +A `loop` expression is only permitted in the body of a loop. ### For expressions