summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/tutorial/controlflow.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 5c7ca4e0a4..43a83823b6 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -156,6 +156,9 @@ following loop, which searches for prime numbers::
8 equals 2 * 4
9 equals 3 * 3
+(Yes, this is the correct code. Look closely: the ``else`` clause belongs to
+the :keyword:`for` loop, **not** the :keyword:`if` statement.)
+
.. _tut-pass: