Skip to content

Commit 0915269

Browse files
author
benjamin.peterson
committed
fix indentation that caused logic bug
git-svn-id: http://svn.python.org/projects/python/trunk@65382 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent deae458 commit 0915269

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/tutorial/controlflow.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ following loop, which searches for prime numbers::
138138
... if n % x == 0:
139139
... print n, 'equals', x, '*', n/x
140140
... break
141-
... else:
142-
... # loop fell through without finding a factor
143-
... print n, 'is a prime number'
141+
... else:
142+
... # loop fell through without finding a factor
143+
... print n, 'is a prime number'
144144
...
145145
2 is a prime number
146146
3 is a prime number

0 commit comments

Comments
 (0)