]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarification to the `break` statement (GH-2453)
authorregexaurus <regexaurus@users.noreply.github.com>
Tue, 27 Jun 2017 22:40:41 +0000 (18:40 -0400)
committerMariatta <Mariatta@users.noreply.github.com>
Tue, 27 Jun 2017 22:40:41 +0000 (15:40 -0700)
Clarify that the break statement breaks out of the innermost enclosing for or while loop.

Doc/tutorial/controlflow.rst

index 54171bc96f0f08bf0767866acfba420e2568198f..36b093950e10d82edda8750c7dbdd9aa4b570583 100644 (file)
@@ -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