From 2ff5f8cbc43b35f502ae22e811ffe8a49e780378 Mon Sep 17 00:00:00 2001 From: "benjamin.peterson" Date: Tue, 27 Apr 2010 23:04:53 +0000 Subject: [PATCH] Merged revisions 80562 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80562 | benjamin.peterson | 2010-04-27 17:58:50 -0500 (Tue, 27 Apr 2010) | 9 lines Merged revisions 80561 via svnmerge from svn+ssh://pythondev@svn.python.org/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 ........ ................ git-svn-id: http://svn.python.org/projects/python/branches/release31-maint@80567 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Doc/library/stdtypes.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 128fd032c9..3b6851c6d1 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -847,10 +847,10 @@ functions based on regular expressions. .. method:: str.find(sub[, start[, end]]) - Return the lowest index in the string where substring *sub* is found, such that - *sub* is contained in the range [*start*, *end*]. Optional arguments *start* - and *end* are interpreted as in slice notation. Return ``-1`` if *sub* is not - found. + Return the lowest index in the string where substring *sub* is found, such + that *sub* is contained in the slice ``s[start:end]``. Optional arguments + *start* and *end* are interpreted as in slice notation. Return ``-1`` if + *sub* is not found. .. method:: str.format(*args, **kwargs) @@ -1017,9 +1017,9 @@ functions based on regular expressions. .. method:: str.rfind(sub[, start[, end]]) - Return the highest index in the string where substring *sub* is found, such that - *sub* is contained within s[start,end]. Optional arguments *start* and *end* - are interpreted as in slice notation. Return ``-1`` on failure. + Return the highest index in the string where substring *sub* is found, such + that *sub* is contained within ``s[start:end]``. Optional arguments *start* + and *end* are interpreted as in slice notation. Return ``-1`` on failure. .. method:: str.rindex(sub[, start[, end]]) -- 2.11.4.GIT