Skip to content

Commit 36fc896

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

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)