]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix error in docstrings in bisect module (GH-21422)
authorSergey Golitsynskiy <sgolitsynskiy@gmail.com>
Sat, 11 Jul 2020 23:18:31 +0000 (19:18 -0400)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2020 23:18:31 +0000 (20:18 -0300)
commit6a1e9c26736259413b060b01d1cb52fcf82c0385
tree97cdc21140485c2e880e4c32f3ea0bbab67beb92
parent344dce312a0cf86d5a5772d54843cc179acaf6e3
Fix error in docstrings in bisect module (GH-21422)

The docstrings for `bisect_right()` and `bisect_left()` contain sample
code that has a bug: `a.insert(x)` should be `a.insert(i, x)`.
Lib/bisect.py