Patch #843088: Fix typos. Backported to 2.3.
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 6c3dc4d..3f902cf 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -300,9 +300,9 @@
correctly.
\end{funcdesc}
-\begin{funcdesc}{replace}{str, old, new\optional{, maxsplit}}
+\begin{funcdesc}{replace}{str, old, new\optional{, maxreplace}}
Return a copy of string \var{str} with all occurrences of substring
\var{old} replaced by \var{new}. If the optional argument
- \var{maxsplit} is given, the first \var{maxsplit} occurrences are
+ \var{maxreplace} is given, the first \var{maxreplace} occurrences are
replaced.
\end{funcdesc}