]> granicus.if.org Git - python/commitdiff
Backport documentation improvement.
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jan 2016 02:07:06 +0000 (18:07 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jan 2016 02:07:06 +0000 (18:07 -0800)
Issue24898 - Improve str.find documentation.

Simplify str.find explaination as per Georg Brandl's suggestion.

Doc/library/stdtypes.rst

index 94bfac1ead2627fb90d187eca78bfc64fd58cabd..fb9140d6c52dc83be9bc1e1e1f7248a102011704 100644 (file)
@@ -963,10 +963,9 @@ 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 slice ``s[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 within
+   the slice ``s[start:end]``.  Optional arguments *start* and *end* are
+   interpreted as in slice notation.  Return ``-1`` if *sub* is not found.
 
    .. note::