diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-01-03 17:57:10 -0800 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-01-03 17:57:10 -0800 |
commit | b7a253fce23d99ffecdde546fcd84ac18663b0d5 (patch) | |
tree | 09175fab352b4ea92c0d4919522426c0e86f5795 | |
parent | ef35f9c521737bbfc7468c1a18a97f332b9241a6 (diff) | |
download | cpython-b7a253fce23d99ffecdde546fcd84ac18663b0d5.tar.gz |
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 4e75e1c7eb..8815d38921 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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:: |