We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d940260 commit cf5e872Copy full SHA for cf5e872
Doc/library/stdtypes.rst
@@ -1563,10 +1563,9 @@ expression support in the :mod:`re` module).
1563
1564
.. method:: str.find(sub[, start[, end]])
1565
1566
- Return the lowest index in the string where substring *sub* is found, such
1567
- that *sub* is contained in the slice ``s[start:end]``. Optional arguments
1568
- *start* and *end* are interpreted as in slice notation. Return ``-1`` if
1569
- *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.
1570
1571
.. note::
1572
0 commit comments