summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-09-15 13:56:28 (GMT)
committerGitHub <noreply@github.com>2020-09-15 13:56:28 (GMT)
commit0cc037f8a72c283bf64d1968e34cbdc22b0e3010 (patch)
tree54ca5d2392d09549b8030ef88249b25b1c13ab2f /Doc
parentb502c7618d710d31517a7ee6a72890d0963e357a (diff)
downloadcpython-0cc037f8a72c283bf64d1968e34cbdc22b0e3010.zip
cpython-0cc037f8a72c283bf64d1968e34cbdc22b0e3010.tar.gz
cpython-0cc037f8a72c283bf64d1968e34cbdc22b0e3010.tar.bz2
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22255)
Revise example of "continue" in the tutorial documentation (cherry picked from commit 7bcc6456ad4704da9b287c8045768fa53961adc5) Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com> Co-authored-by: Neeraj Samtani <neerajjsamtani@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/controlflow.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 547f4ae..3af288a 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -207,15 +207,15 @@ iteration of the loop::
... if num % 2 == 0:
... print("Found an even number", num)
... continue
- ... print("Found a number", num)
+ ... print("Found an odd number", num)
Found an even number 2
- Found a number 3
+ Found an odd number 3
Found an even number 4
- Found a number 5
+ Found an odd number 5
Found an even number 6
- Found a number 7
+ Found an odd number 7
Found an even number 8
- Found a number 9
+ Found an odd number 9
.. _tut-pass: