]> granicus.if.org Git - python/commitdiff
Fix typo in re.escape documentation (GH-14722)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 13 Jul 2019 08:42:25 +0000 (01:42 -0700)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2019 08:42:25 +0000 (01:42 -0700)
(cherry picked from commit fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf)

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

index 5ef72b535ce8d46e37d51388b443bf0bb1e2ab5c..158248c3d14794be8ac08375004943e096d764a8 100644 (file)
@@ -942,7 +942,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+'