]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Docs: Fix missing colon in `bisect` example function (GH-151061) (GH-151069)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Jun 2026 09:45:49 +0000 (11:45 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2026 09:45:49 +0000 (09:45 +0000)
Docs: Fix missing colon in `bisect` example function (GH-151061)
(cherry picked from commit 16ede813ebad81e41874f1c0a1b3c83fc98a38ca)

Co-authored-by: Sergio López Gómez <sergiolopezgmz.dam@gmail.com>
Doc/library/bisect.rst

index 96d8b54e7d2bbdc69048e6bd656f8a8c3c6dd3cf..5914f5cb91f4fcb2e88b83ba0e7e994ba8ec7451 100644 (file)
@@ -203,7 +203,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]
    ...