]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] Docs: Fix missing colon in `bisect` example function (GH-151061) (GH-151067)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Jun 2026 09:47:41 +0000 (11:47 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2026 09:47:41 +0000 (09:47 +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 2c29a5ec992737e55d7f19262219289535933cae..f532aa462565e406e9cb38007f402d941ed7f260 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]
    ...