summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-11-17 20:09:24 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-11-17 20:09:24 (GMT)
commit58b7166202e6ac61e873cff2e15aa4f437df13fa (patch)
tree16cc48cbe10f0ceb7ffcc0e43e92820260c9641f /Doc/tutorial
parenta6bc95aa0252399c026e749c4a294e2a22912f72 (diff)
parente65cb190a6997da99b695c8757a4a9ac57c6fffa (diff)
downloadcpython-58b7166202e6ac61e873cff2e15aa4f437df13fa.zip
cpython-58b7166202e6ac61e873cff2e15aa4f437df13fa.tar.gz
cpython-58b7166202e6ac61e873cff2e15aa4f437df13fa.tar.bz2
Merge indentation fix in doc example from 3.3.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 52e382e..b1456ae 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -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