diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-02 02:57:17 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-02 02:57:17 (GMT) |
commit | 1af6fb5298ff9a9026fea15840d7dd22c1a73426 (patch) | |
tree | d0b8ddec42fb901d999b0e4ab7ffeeb3de512542 /Doc/tutorial | |
parent | 290d3d994aeed006daa559b2e613f536f0bc668b (diff) | |
download | cpython-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.rst | 6 |
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 |