diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-01-04 01:58:24 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-01-04 01:58:24 (GMT) |
commit | f34c3fe20c6e996b44014bf3e4e1fecc3739551c (patch) | |
tree | a822d36365a99c6d2b96215d9ac5af4ea6b64fdf /Doc | |
parent | 6ffbcdf13f9dd3c031a26820df773f27e1a3ca3c (diff) | |
parent | 114a1d638ecd9dc78cf6514c49e5b46213d3a5cd (diff) | |
download | cpython-f34c3fe20c6e996b44014bf3e4e1fecc3739551c.zip cpython-f34c3fe20c6e996b44014bf3e4e1fecc3739551c.tar.gz cpython-f34c3fe20c6e996b44014bf3e4e1fecc3739551c.tar.bz2 |
merge from 3.4
Issue24898 - Improve str.find documentation.
Simplify str.find explaination as per Georg Brandl's suggestion.
Diffstat (limited to 'Doc')
-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 e7f062b..8bcc4a0 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:: |