]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update documentation for string.replace. Thanks to docs@
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 28 Sep 2012 13:31:06 +0000 (16:31 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 28 Sep 2012 13:31:06 +0000 (16:31 +0300)
Doc/library/string.rst

index ef1a0c265bcd33cbc5bee234e1197d5171da8a9b..a7336c477c02dd0cab55f466f7225b3adec9f98d 100644 (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.