diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-01-03 18:00:31 -0800 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-01-03 18:00:31 -0800 |
commit | dcf76c9d0ab11f77eaa856ff0583c5c636ddb47d (patch) | |
tree | d19c0026fceb18650958ca0e235bd24a68cd02e3 | |
parent | 15777231e93948d15ad72f7504e178946be3094d (diff) | |
parent | f34c3fe20c6e996b44014bf3e4e1fecc3739551c (diff) | |
download | cpython-git-dcf76c9d0ab11f77eaa856ff0583c5c636ddb47d.tar.gz |
merge from 3.5
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 e7f062bef5..8bcc4a0c27 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:: |