summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-06-11 22:06:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-06-11 22:06:06 (GMT)
commit27352a59938163a51e1b76544370e131f859f891 (patch)
tree728f6efbffb3badcf2cf1be0e660d93e73d95ca9
parente046d2aefd2ef761d14feb2df8f0648a71063122 (diff)
downloadcpython-27352a59938163a51e1b76544370e131f859f891.zip
cpython-27352a59938163a51e1b76544370e131f859f891.tar.gz
cpython-27352a59938163a51e1b76544370e131f859f891.tar.bz2
Move comment to correct line.
-rw-r--r--Doc/library/bisect.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst
index 6b3f7e8..3890d68 100644
--- a/Doc/library/bisect.rst
+++ b/Doc/library/bisect.rst
@@ -77,8 +77,8 @@ Instead, it is better to search a list of precomputed keys to find the index
of the record in question::
>>> data = [('red', 5), ('blue', 1), ('yellow', 8), ('black', 0)]
- >>> data.sort(key=lambda r: r[1]) # precomputed list of keys
- >>> keys = [r[1] for r in data]
+ >>> data.sort(key=lambda r: r[1])
+ >>> keys = [r[1] for r in data] # precomputed list of keys
>>> data[bisect_left(keys, 0)]
('black', 0)
>>> data[bisect_left(keys, 1)]