From: Benjamin Peterson Date: Sat, 2 Aug 2008 02:57:17 +0000 (+0000) Subject: fix indentation that caused logic bug X-Git-Tag: v2.6b3~178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1af6fb5298ff9a9026fea15840d7dd22c1a73426;p=thirdparty%2FPython%2Fcpython.git fix indentation that caused logic bug --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 4fa9858765d0..4c10eb80ff25 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