]> granicus.if.org Git - python/commitdiff
Fix indentation in doc example.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 17 Nov 2013 20:07:48 +0000 (22:07 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 17 Nov 2013 20:07:48 +0000 (22:07 +0200)
Doc/tutorial/controlflow.rst

index 4de9ec927f3ab766b08ac65dcb2ee386be3d143d..8ffaf3f07c7077843337b55870fb49a59c0a8bf3 100644 (file)
@@ -19,14 +19,14 @@ example::
    >>> x = int(raw_input("Please enter an integer: "))
    Please enter an integer: 42
    >>> if x < 0:
-   ...      x = 0
-   ...      print 'Negative changed to zero'
+   ...     x = 0
+   ...     print 'Negative changed to zero'
    ... elif x == 0:
-   ...      print 'Zero'
+   ...     print 'Zero'
    ... elif x == 1:
-   ...      print 'Single'
+   ...     print 'Single'
    ... else:
-   ...      print 'More'
+   ...     print 'More'
    ...
    More