@@ -912,10 +912,10 @@ functions based on regular expressions.
912912
913913.. method :: str.find(sub[, start[, end]])
914914
915- Return the lowest index in the string where substring *sub * is found, such that
916- *sub * is contained in the range [* start *, * end *] . Optional arguments * start *
917- and *end * are interpreted as in slice notation. Return ``-1 `` if * sub * is not
918- found.
915+ Return the lowest index in the string where substring *sub * is found, such
916+ that *sub * is contained in the slice `` s[ start: end] `` . Optional arguments
917+ * start * and *end * are interpreted as in slice notation. Return ``-1 `` if
918+ * sub * is not found.
919919
920920
921921.. method :: str.format(*args, **kwargs)
@@ -1082,9 +1082,9 @@ functions based on regular expressions.
10821082
10831083.. method :: str.rfind(sub[, start[, end]])
10841084
1085- Return the highest index in the string where substring *sub * is found, such that
1086- *sub * is contained within s[start, end]. Optional arguments *start * and * end *
1087- are interpreted as in slice notation. Return ``-1 `` on failure.
1085+ Return the highest index in the string where substring *sub * is found, such
1086+ that *sub * is contained within `` s[start: end] `` . Optional arguments *start *
1087+ and * end * are interpreted as in slice notation. Return ``-1 `` on failure.
10881088
10891089
10901090.. method :: str.rindex(sub[, start[, end]])
0 commit comments