Skip to content

Commit 5b5002c

Browse files
regexaurusMariatta
authored andcommitted
Clarification to the break statement (GH-2453) (GH-2459)
Clarify that the break statement breaks out of the innermost enclosing for or while loop. (cherry picked from commit 36fc896)
1 parent fea98bf commit 5b5002c

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
@@ -126,7 +126,7 @@ function, see :ref:`tut-loopidioms`.
126126
:keyword:`break` and :keyword:`continue` Statements, and :keyword:`else` Clauses on Loops
127127
=========================================================================================
128128

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

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

0 commit comments

Comments
 (0)