summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-13 12:36:18 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-13 12:36:18 (GMT)
commit456cb1e694d6fb5573320f77384b3cb03fee910c (patch)
tree07c3b42c1e0ee877a1a83629bd4443e414c6911c
parent156c31a7beea8cb4d5265410b20dc8eb3798379f (diff)
downloadcpython-456cb1e694d6fb5573320f77384b3cb03fee910c.zip
cpython-456cb1e694d6fb5573320f77384b3cb03fee910c.tar.gz
cpython-456cb1e694d6fb5573320f77384b3cb03fee910c.tar.bz2
Simplify markup.
-rw-r--r--Doc/reference/compound_stmts.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 408298d..4d7addb 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -1,4 +1,3 @@
-
.. _compound:
*******************
@@ -195,12 +194,10 @@ effect of Pascal's ``for i := a to b do``; e.g., ``range(3)`` returns the list
inserts an item in the sequence before the current item, the current item will
be treated again the next time through the loop. This can lead to nasty bugs
that can be avoided by making a temporary copy using a slice of the whole
- sequence, e.g.,
-
-::
+ sequence, e.g., ::
- for x in a[:]:
- if x < 0: a.remove(x)
+ for x in a[:]:
+ if x < 0: a.remove(x)
.. _try: