]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in tutorial
authorEli Bendersky <eliben@gmail.com>
Sat, 18 Aug 2012 06:51:37 +0000 (09:51 +0300)
committerEli Bendersky <eliben@gmail.com>
Sat, 18 Aug 2012 06:51:37 +0000 (09:51 +0300)
Doc/tutorial/controlflow.rst

index 0616613880a8368aa016db54feca8f075b98f491..3d3af4e9374966d027b9810261cce492da45b667 100644 (file)
@@ -167,7 +167,7 @@ The :keyword:`continue` statement, also borrowed from C, continues with the next
 iteration of the loop::
 
     >>> for num in range(2, 10):
-    ...     if x % 2 == 0:
+    ...     if num % 2 == 0:
     ...         print("Found an even number", num)
     ...         continue
     ...     print("Found a number", num)