Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d99cd81

Browse files
committed
Merged revisions 80561 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r80561 | benjamin.peterson | 2010-04-27 17:56:31 -0500 (Tue, 27 Apr 2010) | 1 line make slice notation in (r)find docs consistent ........
1 parent 9bfbe61 commit d99cd81

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -912,10 +912,10 @@ functions based on regular expressions.
912912

913913
.. method:: str.find(sub[, start[, end]])
914914

915-
Return the lowest index in the string where substring *sub* is found, such that
916-
*sub* is contained in the range [*start*, *end*]. Optional arguments *start*
917-
and *end* are interpreted as in slice notation. Return ``-1`` if *sub* is not
918-
found.
915+
Return the lowest index in the string where substring *sub* is found, such
916+
that *sub* is contained in the slice ``s[start:end]``. Optional arguments
917+
*start* and *end* are interpreted as in slice notation. Return ``-1`` if
918+
*sub* is not found.
919919

920920

921921
.. method:: str.format(*args, **kwargs)
@@ -1082,9 +1082,9 @@ functions based on regular expressions.
10821082

10831083
.. method:: str.rfind(sub[, start[, end]])
10841084

1085-
Return the highest index in the string where substring *sub* is found, such that
1086-
*sub* is contained within s[start,end]. Optional arguments *start* and *end*
1087-
are interpreted as in slice notation. Return ``-1`` on failure.
1085+
Return the highest index in the string where substring *sub* is found, such
1086+
that *sub* is contained within ``s[start:end]``. Optional arguments *start*
1087+
and *end* are interpreted as in slice notation. Return ``-1`` on failure.
10881088

10891089

10901090
.. method:: str.rindex(sub[, start[, end]])

0 commit comments

Comments
 (0)