diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-01-04 02:07:06 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-01-04 02:07:06 (GMT) |
commit | e2e6b54a4c147ad49e2e2c1c152b5847ba99712e (patch) | |
tree | f2f212ed3e779974c98fef0380b2df7618e3a75e | |
parent | 8a4e7fd6780ebf14869a7dea56121d676d465e8e (diff) | |
download | cpython-e2e6b54a4c147ad49e2e2c1c152b5847ba99712e.zip cpython-e2e6b54a4c147ad49e2e2c1c152b5847ba99712e.tar.gz cpython-e2e6b54a4c147ad49e2e2c1c152b5847ba99712e.tar.bz2 |
Backport documentation improvement.
Issue24898 - Improve str.find documentation.
Simplify str.find explaination as per Georg Brandl's suggestion.
-rw-r--r-- | Doc/library/stdtypes.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 94bfac1..fb9140d6 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:: |