Skip to content

Commit ff08784

Browse files
committed
Move comment to correct line.
1 parent b90eb25 commit ff08784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/bisect.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ Instead, it is better to search a list of precomputed keys to find the index
8686
of the record in question::
8787

8888
>>> data = [('red', 5), ('blue', 1), ('yellow', 8), ('black', 0)]
89-
>>> data.sort(key=lambda r: r[1]) # precomputed list of keys
90-
>>> keys = [r[1] for r in data]
89+
>>> data.sort(key=lambda r: r[1])
90+
>>> keys = [r[1] for r in data] # precomputed list of keys
9191
>>> data[bisect_left(keys, 0)]
9292
('black', 0)
9393
>>> data[bisect_left(keys, 1)]

0 commit comments

Comments
 (0)