]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Fix missing colon in `bisect` example function (GH-151061)
authorSergio López Gómez <sergiolopezgmz.dam@gmail.com>
Mon, 8 Jun 2026 09:39:03 +0000 (11:39 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2026 09:39:03 +0000 (05:39 -0400)
Doc/library/bisect.rst

index 84c009907ed9a3cd90d79ae519cf20226dac96fa..39ab75c0904df9c811f03c9eb579c094c2e4b6ad 100644 (file)
@@ -200,7 +200,7 @@ example uses :py:func:`~bisect.bisect` to look up a letter grade for an exam sco
 based on a set of ordered numeric breakpoints: 90 and up is an 'A', 80 to 89 is
 a 'B', and so on::
 
-   >>> def grade(score)
+   >>> def grade(score):
    ...     i = bisect([60, 70, 80, 90], score)
    ...     return "FDCBA"[i]
    ...