Update documentation for string.replace. Thanks to docs@

This commit is contained in:
Andrew Svetlov 2012-09-28 16:31:06 +03:00
parent bf2ad34650
commit 9ac20231e0
1 changed files with 2 additions and 2 deletions

View File

@ -1029,9 +1029,9 @@ not be removed until Python 3. The functions defined in this module are:
reached. Strings starting with a sign are handled correctly.
.. function:: replace(str, old, new[, maxreplace])
.. function:: replace(s, old, new[, maxreplace])
Return a copy of string *str* with all occurrences of substring *old* replaced
Return a copy of string *s* with all occurrences of substring *old* replaced
by *new*. If the optional argument *maxreplace* is given, the first
*maxreplace* occurrences are replaced.