]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in re.escape documentation (GH-14722)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 13 Jul 2019 08:40:54 +0000 (01:40 -0700)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2019 08:40:54 +0000 (01:40 -0700)
(cherry picked from commit fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf)

Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
Doc/library/re.rst

index 2e6c7f715d20d68baf527006bf7aba0d8f27c933..23deb1f01b86f27484b43ec29e786aeb04cde50b 100644 (file)
@@ -936,7 +936,7 @@ form.
       >>> print('|'.join(map(re.escape, sorted(operators, reverse=True))))
       /|\-|\+|\*\*|\*
 
-   This functions must not be used for the replacement string in :func:`sub`
+   This function must not be used for the replacement string in :func:`sub`
    and :func:`subn`, only backslashes should be escaped.  For example::
 
       >>> digits_re = r'\d+'