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

benjamin.peterson python-checkins at python.org
Sat Aug 2 04:57:17 CEST 2008


Author: benjamin.peterson
Date: Sat Aug  2 04:57:17 2008
New Revision: 65382

Log:
fix indentation that caused logic bug

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 04:57:17 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