summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-08-25 09:52:26 (GMT)
committerGeorg Brandl <georg@python.org>2011-08-25 09:52:26 (GMT)
commite1eef41a18301dad262193a8074060cda0964990 (patch)
treef7bc51c436f1fe80a09c23406459499c64e35eb5 /Doc
parent175eb995d342ebdffb7f56d106fd47e7253a043a (diff)
downloadcpython-e1eef41a18301dad262193a8074060cda0964990.zip
cpython-e1eef41a18301dad262193a8074060cda0964990.tar.gz
cpython-e1eef41a18301dad262193a8074060cda0964990.tar.bz2
Close #12838: fix range() call.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/faq/programming.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 07e6818..8b2f047 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -171,7 +171,7 @@ tick of the interpreter's mainloop using highly optimized C implementations.
Thus to get the same effect as::
L2 = []
- for i in range[3]:
+ for i in range(3):
L2.append(L1[i])
it is much shorter and far faster to use ::