]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Confirm that the prime example is actually correct. We get so many complaints about...
authorGeorg Brandl <georg@python.org>
Mon, 8 Aug 2011 19:45:13 +0000 (21:45 +0200)
committerGeorg Brandl <georg@python.org>
Mon, 8 Aug 2011 19:45:13 +0000 (21:45 +0200)
Doc/tutorial/controlflow.rst

index 5c7ca4e0a4ec8793583e2135457f58cfa0bd0f71..43a83823b6cd535f569c02a04783b727fec41bff 100644 (file)
@@ -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: