Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove trailing whitespace
  • Loading branch information
Gerardwx committed Sep 6, 2024
commit d139a225076daa2b725ea39260f6d1022b498b7e
2 changes: 1 addition & 1 deletion Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ arguments. In chapter :ref:`tut-structures`, we will discuss in more detail abo
The :keyword:`break` statement breaks out of the innermost enclosing
:keyword:`for` or :keyword:`while` loop.

The :keyword:`!break` statement may be paired with an :keyword:`!else` clause.
The :keyword:`!break` statement may be paired with an :keyword:`!else` clause.
If the loop exits without executing the break, the else clause executes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If the loop exits without executing the break, the else clause executes.
If the loop finishes without executing the break, the else clause executes.


In a :keyword:`for` loop, the :keyword:`!else` clause is executed
Expand Down