Skip to content

Commit

Permalink
Update Doc/tutorial/controlflow.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <[email protected]>
  • Loading branch information
nedbat and JelleZijlstra authored Sep 25, 2024
1 parent 24be1a9 commit b42d86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ iteration of the loop::

In a :keyword:`!for` or :keyword:`!while` loop the :keyword:`!break` statement
may be paired with an :keyword:`!else` clause. If the loop finishes without
executing the break, the else clause executes.
executing the :keyword:`!break`, the :keyword:`!else` clause executes.

In a :keyword:`for` loop, the :keyword:`!else` clause is executed
after the loop finishes its final iteration, that is, if no break occurred.
Expand Down

0 comments on commit b42d86c

Please sign in to comment.