]> 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 e33a59619a9fcb9bbe94a4779319094023808171..cb9597fb419bf07703e79263fb585f9262878227 100644 (file)
@@ -184,6 +184,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: