8000 Clarification to the `break` statement (GH-2453) (#GH-2457) · python/cpython@c4cc553 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4cc553

Browse files
regexaurusMariatta
authored andcommitted
Clarification to the break statement (GH-2453) (#GH-2457)
Clarify that the break statement breaks out of the innermost enclosing for or while loop. (cherry picked from commit 36fc896)
1 parent 26daad4 commit c4cc553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Later we will see more functions that return iterables and take iterables as arg
157157
:keyword:`break` and :keyword:`continue` Statements, and :keyword:`else` Clauses on Loops
158158
=========================================================================================
159159

160-
The :keyword:`break` statement, like in C, breaks out of the smallest enclosing
160+
The :keyword:`break` statement, like in C, breaks out of the innermost enclosing
161161
:keyword:`for` or :keyword:`while` loop.
162162

163163
Loop statements may have an ``else`` clause; it is executed when the loop

0 commit comments

Comments
 (0)
0