]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarification to the `break` statement (GH-2453) (GH-2459)
authorregexaurus <regexaurus@users.noreply.github.com>
Wed, 28 Jun 2017 02:36:15 +0000 (22:36 -0400)
committerMariatta <Mariatta@users.noreply.github.com>
Wed, 28 Jun 2017 02:36:15 +0000 (19:36 -0700)
Clarify that the break statement breaks out of the innermost enclosing for or while loop.
(cherry picked from commit 36fc896740319d2c03aa2054a90a999c162517ef)

Doc/tutorial/controlflow.rst

index a264bd728bf0f695e0b11675572750d9e5a03654..c1c3d28fd07737338b2cb0c8c39d5e76b17e96b6 100644 (file)
@@ -126,7 +126,7 @@ function, see :ref:`tut-loopidioms`.
 :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