]> granicus.if.org Git - python/commitdiff
Issue24898 - Improve str.find documentation.
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jan 2016 01:57:10 +0000 (17:57 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jan 2016 01:57:10 +0000 (17:57 -0800)
Simplify str.find explaination as per Georg Brandl's suggestion.

Doc/library/stdtypes.rst

index 4e75e1c7eb61a4f70b05140e61dbbd45a1e5e2c0..8815d38921f99a0fcf005c5c3bbc10da62a97c08 100644 (file)
@@ -1563,10 +1563,9 @@ expression support in the :mod:`re` module).
 
 .. 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::