diff --git a/pep-0616.rst b/pep-0616.rst index 3890d941973..ce51a3471de 100644 --- a/pep-0616.rst +++ b/pep-0616.rst @@ -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