]> git.ipfire.org Git - thirdparty/Python/cpython.git/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 52e382e52d58c29cc3da8319e7fdcfe31075992c..b1456ae57f9f25596bd4b051683f265ea3230226 100644 (file)
@@ -19,14 +19,14 @@ example::
    >>> x = int(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