]> git.lizzy.rs Git - rust.git/commitdiff
documentation fix
authorKatze <binary@benary.org>
Fri, 26 Feb 2016 08:45:32 +0000 (09:45 +0100)
committerbenaryorg <binary@benary.org>
Fri, 26 Feb 2016 08:58:01 +0000 (09:58 +0100)
`continue` expression's description mentioned `break` instead of `continue`

Signed-off-by: benaryorg <binary@benary.org>
src/doc/reference.md

index 228af39483832a7d9c7afce2167158a0be71be0a..ebad8c6c75e55f9082e2d3c4512c419037ed5c94 100644 (file)
@@ -3036,7 +3036,7 @@ 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. If the label is present, then `continue 'foo` returns
 control to the head of the loop with label `'foo`, which need not be the
-innermost label enclosing the `break` expression, but must enclose it.
+innermost label enclosing the `continue` expression, but must enclose it.
 
 A `continue` expression is only permitted in the body of a loop.