summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-07-29 17:38:35 (GMT)
committerGeorg Brandl <georg@python.org>2007-07-29 17:38:35 (GMT)
commit9efd9b6fa446978566f5b146f552aac87e62a7b0 (patch)
treed96b2d0dbe3785ee2da4ec05864c6a2733f1e6a7 /Objects/stringobject.c
parentec62423be4a84a056a9a0a1203875b8a29279365 (diff)
downloadcpython-9efd9b6fa446978566f5b146f552aac87e62a7b0.zip
cpython-9efd9b6fa446978566f5b146f552aac87e62a7b0.tar.gz
cpython-9efd9b6fa446978566f5b146f552aac87e62a7b0.tar.bz2
Bug #1763149: use proper slice syntax in docstring.
(backport)
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 16affdd..4dd64f8 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1891,7 +1891,7 @@ PyDoc_STRVAR(find__doc__,
"S.find(sub [,start [,end]]) -> int\n\
\n\
Return the lowest index in S where substring sub is found,\n\
-such that sub is contained within s[start,end]. Optional\n\
+such that sub is contained within s[start:end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\
\n\
Return -1 on failure.");
@@ -1930,7 +1930,7 @@ PyDoc_STRVAR(rfind__doc__,
"S.rfind(sub [,start [,end]]) -> int\n\
\n\
Return the highest index in S where substring sub is found,\n\
-such that sub is contained within s[start,end]. Optional\n\
+such that sub is contained within s[start:end]. Optional\n\
arguments start and end are interpreted as in slice notation.\n\
\n\
Return -1 on failure.");