[Python-checkins] r65383 - python/trunk/Doc/tutorial/controlflow.rst

benjamin.peterson python-checkins at python.org
Sat Aug 2 05:05:12 CEST 2008


Author: benjamin.peterson
Date: Sat Aug  2 05:05:11 2008
New Revision: 65383

Log:
revert last revision; code was right

Modified:
   python/trunk/Doc/tutorial/controlflow.rst

Modified: python/trunk/Doc/tutorial/controlflow.rst
==============================================================================
--- python/trunk/Doc/tutorial/controlflow.rst	(original)
+++ python/trunk/Doc/tutorial/controlflow.rst	Sat Aug  2 05:05:11 2008
@@ -138,9 +138,9 @@
    ...         if n % x == 0:
    ...             print n, 'equals', x, '*', n/x
    ...             break
-   ... else:
-   ...     # loop fell through without finding a factor
-   ...     print n, 'is a prime number'
+   ...     else:
+   ...         # loop fell through without finding a factor
+   ...         print n, 'is a prime number'
    ... 
    2 is a prime number
    3 is a prime number


More information about the Python-checkins mailing list