Skip to content

Commit

Permalink
Typo in pep-0616 (removeprefix) 'Rejected' section (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy-geek authored Dec 17, 2021
1 parent fc2e5d0 commit 0e3c5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep-0616.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e3c5cf

Please sign in to comment.