]> granicus.if.org Git - python/commitdiff
Merged revisions 80561 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Tue, 27 Apr 2010 22:59:11 +0000 (22:59 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 27 Apr 2010 22:59:11 +0000 (22:59 +0000)
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
........

Doc/library/stdtypes.rst

index 2d830d20709521cf4a757f1a8f5bda556e8a728a..39bef7c7868c4490b5e355b1632851aaa5f55f8a 100644 (file)
@@ -875,10 +875,10 @@ string 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)
@@ -1024,9 +1024,9 @@ string 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]])