diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-02 03:05:11 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-02 03:05:11 (GMT) |
commit | 80790287ab5e12df0ca03bcfdacb57b83c16d9ec (patch) | |
tree | 274e2a08aaafe67d55ec4cff4969b09a7ea433a0 | |
parent | 1af6fb5298ff9a9026fea15840d7dd22c1a73426 (diff) | |
download | cpython-80790287ab5e12df0ca03bcfdacb57b83c16d9ec.zip cpython-80790287ab5e12df0ca03bcfdacb57b83c16d9ec.tar.gz cpython-80790287ab5e12df0ca03bcfdacb57b83c16d9ec.tar.bz2 |
revert last revision; code was right
-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 4c10eb8..4fa9858 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 |