mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
This commit is contained in:
commit
fcdaaa9011
3 changed files with 6 additions and 6 deletions
|
|
@ -1269,7 +1269,7 @@ PyDoc_STRVAR(find__doc__,
|
|||
"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.");
|
||||
|
|
@ -1308,7 +1308,7 @@ PyDoc_STRVAR(rfind__doc__,
|
|||
"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.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue