mirror of
https://github.com/python/cpython.git
synced 2026-03-20 11:50:52 +00:00
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 36fc896740)
This commit is contained in:
parent
26daad4ee1
commit
c4cc5534fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue