Skip to content

Commit 103f776

Browse files
[3.14] Docs: Fix missing colon in bisect example function (GH-151061) (GH-151068)
Docs: Fix missing colon in `bisect` example function (GH-151061) (cherry picked from commit 16ede81) Co-authored-by: Sergio López Gómez <sergiolopezgmz.dam@gmail.com>
1 parent 157a5df commit 103f776

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/bisect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ example uses :py:func:`~bisect.bisect` to look up a letter grade for an exam sco
203203
based on a set of ordered numeric breakpoints: 90 and up is an 'A', 80 to 89 is
204204
a 'B', and so on::
205205

206-
>>> def grade(score)
206+
>>> def grade(score):
207207
... i = bisect([60, 70, 80, 90], score)
208208
... return "FDCBA"[i]
209209
...

0 commit comments

Comments
 (0)