]> granicus.if.org Git - python/commitdiff
tutorial typo fix
authorEli Bendersky <eliben@gmail.com>
Sat, 18 Aug 2012 06:50:09 +0000 (09:50 +0300)
committerEli Bendersky <eliben@gmail.com>
Sat, 18 Aug 2012 06:50:09 +0000 (09:50 +0300)
Doc/tutorial/controlflow.rst

index 3c0f88e90fbf8c0aa44e8ae1f5654dec14a77053..1564e96c300962e38571e06fa1782bf37f050e78 100644 (file)
@@ -195,7 +195,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)