Typo in pep-0616 (removeprefix) 'Rejected' section (#2197)

This commit is contained in:
Edward O 2021-12-17 23:49:28 +01:00 committed by GitHub
parent fc2e5d0106
commit 0e3c5cf71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ rejected on the following grounds:
* This behavior can be surprising or visually confusing, especially
when one prefix is empty or is a substring of another prefix, as in
``'FooBar'.removeprefix(('', 'Foo')) == 'Foo'``
``'FooBar'.removeprefix(('', 'Foo')) == 'FooBar'``
or ``'FooBar text'.removeprefix(('Foo', 'FooBar ')) == 'Bar text'``.
* The API for ``str.replace()`` only accepts a single pair of