summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-02 02:57:17 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-02 02:57:17 (GMT)
commit1af6fb5298ff9a9026fea15840d7dd22c1a73426 (patch)
treed0b8ddec42fb901d999b0e4ab7ffeeb3de512542 /Doc/tutorial
parent290d3d994aeed006daa559b2e613f536f0bc668b (diff)
downloadcpython-1af6fb5298ff9a9026fea15840d7dd22c1a73426.zip
cpython-1af6fb5298ff9a9026fea15840d7dd22c1a73426.tar.gz
cpython-1af6fb5298ff9a9026fea15840d7dd22c1a73426.tar.bz2
fix indentation that caused logic bug
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 4fa9858..4c10eb8 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -138,9 +138,9 @@ following loop, which searches for prime numbers::
... 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