From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 8 Jun 2026 09:45:49 +0000 (+0200) Subject: [3.13] Docs: Fix missing colon in `bisect` example function (GH-151061) (GH-151069) X-Git-Tag: v3.13.14~34 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=6e5c4c0c52bb9414720ed66f35b1271f88d855aa;p=thirdparty%2FPython%2Fcpython.git [3.13] Docs: Fix missing colon in `bisect` example function (GH-151061) (GH-151069) Docs: Fix missing colon in `bisect` example function (GH-151061) (cherry picked from commit 16ede813ebad81e41874f1c0a1b3c83fc98a38ca) Co-authored-by: Sergio López Gómez --- diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst index 96d8b54e7d2b..5914f5cb91f4 100644 --- a/Doc/library/bisect.rst +++ b/Doc/library/bisect.rst @@ -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] ...