Skip to content

Commit cf5e872

Browse files
committed
Issue24898 - Improve str.find documentation.
Simplify str.find explaination as per Georg Brandl's suggestion.
1 parent d940260 commit cf5e872

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/library/stdtypes.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,10 +1563,9 @@ expression support in the :mod:`re` module).
15631563

15641564
.. method:: str.find(sub[, start[, end]])
15651565

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.
1566+
Return the lowest index in the string where substring *sub* is found within
1567+
the slice ``s[start:end]``. Optional arguments *start* and *end* are
1568+
interpreted as in slice notation. Return ``-1`` if *sub* is not found.
15701569

15711570
.. note::
15721571

0 commit comments

Comments
 (0)