Commit e2e6b54a authored by Senthil Kumaran's avatar Senthil Kumaran

Backport documentation improvement.

Issue24898 - Improve str.find documentation.

Simplify str.find explaination as per Georg Brandl's suggestion.
parent 8a4e7fd6
......@@ -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::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment