diff Objects/bytesobject.c @ 71527:c3aebd01a033 3.2

Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
author Senthil Kumaran <senthil@uthcode.com>
date Wed, 27 Jul 2011 23:33:54 +0800
parents f393c507717a
children beac7d6c7be4 842494d73f69
line wrap: on
line diff
--- a/Objects/bytesobject.c	Wed Jul 27 07:16:31 2011 +0200
+++ b/Objects/bytesobject.c	Wed Jul 27 23:33:54 2011 +0800
@@ -1273,7 +1273,7 @@
 "B.find(sub[, start[, end]]) -> int\n\
 \n\
 Return the lowest index in B where substring sub is found,\n\
-such that sub is contained within s[start:end].  Optional\n\
+such that sub is contained within B[start:end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");
@@ -1312,7 +1312,7 @@
 "B.rfind(sub[, start[, end]]) -> int\n\
 \n\
 Return the highest index in B where substring sub is found,\n\
-such that sub is contained within s[start:end].  Optional\n\
+such that sub is contained within B[start:end].  Optional\n\
 arguments start and end are interpreted as in slice notation.\n\
 \n\
 Return -1 on failure.");