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

View file

@ -138,9 +138,9 @@ following loop, which searches for prime numbers::
... if n % x == 0: ... if n % x == 0:
... print n, 'equals', x, '*', n/x ... print n, 'equals', x, '*', n/x
... break ... break
... else: ... else:
... # loop fell through without finding a factor ... # loop fell through without finding a factor
... print n, 'is a prime number' ... print n, 'is a prime number'
... ...
2 is a prime number 2 is a prime number
3 is a prime number 3 is a prime number