summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorregexaurus <regexaurus@users.noreply.github.com>2017-06-28 02:38:22 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-28 02:38:22 (GMT)
commitc4cc5534fd32dfde5564dd44f867f2fd66d3e1da (patch)
tree2c0d06321443a4896bf527e5925257426ba50fca /Doc
parent26daad4ee14693381d84a5235709d22aed1c22ed (diff)
downloadcpython-c4cc5534fd32dfde5564dd44f867f2fd66d3e1da.zip
cpython-c4cc5534fd32dfde5564dd44f867f2fd66d3e1da.tar.gz
cpython-c4cc5534fd32dfde5564dd44f867f2fd66d3e1da.tar.bz2
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 36fc896740319d2c03aa2054a90a999c162517ef)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/controlflow.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 54171bc..36b0939 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -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