diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-01-04 01:57:10 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-01-04 01:57:10 (GMT) |
commit | 114a1d638ecd9dc78cf6514c49e5b46213d3a5cd (patch) | |
tree | 46fb0aeb33be69430749d35278539adeaeb16727 | |
parent | a880800363774848f39e1aa316aa4a44fef9c8fc (diff) | |
download | cpython-114a1d638ecd9dc78cf6514c49e5b46213d3a5cd.zip cpython-114a1d638ecd9dc78cf6514c49e5b46213d3a5cd.tar.gz cpython-114a1d638ecd9dc78cf6514c49e5b46213d3a5cd.tar.bz2 |
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 4e75e1c..8815d38 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:: |