From 0e3c5cf71b046d99134e2aff9bdbc76a71ee8b64 Mon Sep 17 00:00:00 2001 From: Edward O Date: Fri, 17 Dec 2021 23:49:28 +0100 Subject: [PATCH] Typo in pep-0616 (removeprefix) 'Rejected' section (#2197) --- pep-0616.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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