Typo in pep-0616 (removeprefix) 'Rejected' section (#2197)
This commit is contained in:
parent
fc2e5d0106
commit
0e3c5cf71b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue