summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-27 22:56:31 +0000
committerBenjamin Peterson <benjamin@python.org>2010-04-27 22:56:31 +0000
commiteef5c35c14f2193d42a5441ef842ec33b84f3ee6 (patch)
treeea9213f6bc326c31852b672019ed60467d08ab7e
parent4c7bcf119431c1752b2f0c41e347b6cd18907fc3 (diff)
downloadcpython-git-eef5c35c14f2193d42a5441ef842ec33b84f3ee6.tar.gz
make slice notation in (r)find docs consistent
-rw-r--r--Doc/library/stdtypes.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 0a6178bf94..600dac0c9f 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -910,10 +910,10 @@ 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 range [*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, 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.
.. method:: str.format(*args, **kwargs)
@@ -1059,9 +1059,9 @@ string functions based on regular expressions.
.. method:: str.rfind(sub [,start [,end]])
- Return the highest index in the string where substring *sub* is found, such that
- *sub* is contained within s[start,end]. Optional arguments *start* and *end*
- are interpreted as in slice notation. Return ``-1`` on failure.
+ Return the highest index in the string where substring *sub* is found, such
+ that *sub* is contained within ``s[start:end]``. Optional arguments *start*
+ and *end* are interpreted as in slice notation. Return ``-1`` on failure.
.. method:: str.rindex(sub[, start[, end]])