Skip to content

Commit 9fa3ecc

Browse files
committed
gh-106318: Remove str.removesuffix() example from str.rsplit() method doc
str.removesuffix() docs have their own examples.
1 parent 1b401b4 commit 9fa3ecc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,13 +2588,7 @@ expression support in the :mod:`re` module).
25882588
>>> 'mississippi'.rstrip('ipz')
25892589
'mississ'
25902590

2591-
See :meth:`str.removesuffix` for a method that will remove a single suffix
2592-
string rather than all of a set of characters. For example::
2593-
2594-
>>> 'Monty Python'.rstrip(' Python')
2595-
'M'
2596-
>>> 'Monty Python'.removesuffix(' Python')
2597-
'Monty'
2591+
See also :meth:`strip` and :meth:`removesuffix`.
25982592

25992593

26002594
.. method:: str.split(sep=None, maxsplit=-1)

0 commit comments

Comments
 (0)