From: Senthil Kumaran Date: Mon, 4 Jan 2016 02:07:06 +0000 (-0800) Subject: Backport documentation improvement. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2e6b54a4c147ad49e2e2c1c152b5847ba99712e;p=python Backport documentation improvement. Issue24898 - Improve str.find documentation. Simplify str.find explaination as per Georg Brandl's suggestion. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 94bfac1ead..fb9140d6c5 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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::