diff options
author | Oleg Iarygin <oleg@arhadthedev.net> | 2023-04-07 00:34:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 00:34:19 (GMT) |
commit | f0424ba4b6663d2a4240239266bea08aff46bb6c (patch) | |
tree | 8a9abdd0245d1cb32cf0485510b8912e7dbfdd21 /Doc/library/bisect.rst | |
parent | a653c32d08abfa34d70186542479e3a7e704f8bd (diff) | |
download | cpython-f0424ba4b6663d2a4240239266bea08aff46bb6c.zip cpython-f0424ba4b6663d2a4240239266bea08aff46bb6c.tar.gz cpython-f0424ba4b6663d2a4240239266bea08aff46bb6c.tar.bz2 |
gh-103266: Fix a typo in example code for bisect() function (#103267)
Diffstat (limited to 'Doc/library/bisect.rst')
-rw-r--r-- | Doc/library/bisect.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst index b85564f..e3c8c80 100644 --- a/Doc/library/bisect.rst +++ b/Doc/library/bisect.rst @@ -210,10 +210,10 @@ records in a table:: >>> Movie = namedtuple('Movie', ('name', 'released', 'director')) >>> movies = [ - ... Movie('Jaws', 1975, 'Speilberg'), + ... Movie('Jaws', 1975, 'Spielberg'), ... Movie('Titanic', 1997, 'Cameron'), ... Movie('The Birds', 1963, 'Hitchcock'), - ... Movie('Aliens', 1986, 'Scott') + ... Movie('Aliens', 1986, 'Cameron') ... ] >>> # Find the first movie released after 1960 @@ -228,8 +228,8 @@ records in a table:: >>> pprint(movies) [Movie(name='The Birds', released=1963, director='Hitchcock'), Movie(name='Love Story', released=1970, director='Hiller'), - Movie(name='Jaws', released=1975, director='Speilberg'), - Movie(name='Aliens', released=1986, director='Scott'), + Movie(name='Jaws', released=1975, director='Spielberg'), + Movie(name='Aliens', released=1986, director='Cameron'), Movie(name='Titanic', released=1997, director='Cameron')] If the key function is expensive, it is possible to avoid repeated function |