diff options
| author | regexaurus <regexaurus@users.noreply.github.com> | 2017-06-27 18:40:41 -0400 |
|---|---|---|
| committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-06-27 15:40:41 -0700 |
| commit | 36fc896740319d2c03aa2054a90a999c162517ef (patch) | |
| tree | ce1eba08db19ccf85e5b77193569f9385f9ac5dc | |
| parent | e613e6add5f07ff6aad5802924596b631b707d2a (diff) | |
| download | cpython-git-36fc896740319d2c03aa2054a90a999c162517ef.tar.gz | |
Clarification to the `break` statement (GH-2453)
Clarify that the break statement breaks out of the innermost enclosing for or while loop.
| -rw-r--r-- | Doc/tutorial/controlflow.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 54171bc96f..36b093950e 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -157,7 +157,7 @@ Later we will see more functions that return iterables and take iterables as arg :keyword:`break` and :keyword:`continue` Statements, and :keyword:`else` Clauses on Loops ========================================================================================= -The :keyword:`break` statement, like in C, breaks out of the smallest enclosing +The :keyword:`break` statement, like in C, breaks out of the innermost enclosing :keyword:`for` or :keyword:`while` loop. Loop statements may have an ``else`` clause; it is executed when the loop |
