diff Objects/stringobject.c @ 42401:e598173f95e8 2.5

Bug #1763149: use proper slice syntax in docstring. (backport)
author Georg Brandl <georg@python.org>
date Sun, 29 Jul 2007 17:37:22 +0000
parents b43e5f3348ae
children cfcfad87eb7d
line wrap: on
line diff
--- a/Objects/stringobject.c	Sun Jul 29 09:11:19 2007 +0000
+++ b/Objects/stringobject.c	Sun Jul 29 17:37:22 2007 +0000
@@ -1890,7 +1890,7 @@
 "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.");
@@ -1929,7 +1929,7 @@
 "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.");