[Python-checkins] cpython (2.7): Update documentation for string.replace. Thanks to docs@

andrew.svetlov python-checkins at python.org
Fri Sep 28 15:31:32 CEST 2012


http://hg.python.org/cpython/rev/c34a177d1f38
changeset: 79205:c34a177d1f38
branch: 2.7
parent: 79202:e2262fcbb366
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Fri Sep 28 16:31:06 2012 +0300
summary:
 Update documentation for string.replace. Thanks to docs@
files:
 Doc/library/string.rst | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -1029,9 +1029,9 @@
 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.
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /