fix indentation that caused logic bug

This commit is contained in:
Benjamin Peterson 2008-08-02 02:57:17 +00:00
parent 290d3d994a
commit 1af6fb5298
1 changed files with 3 additions and 3 deletions

View File

@ -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