[Python-checkins] Fix typo in re.escape documentation (GH-14722)

Xiang Zhang webhook-mailer at python.org
Sat Jul 13 04:35:16 EDT 2019


https://github.com/python/cpython/commit/fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf
commit: fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf
branch: master
author: Robert DiPietro <rdipietro at gmail.com>
committer: Xiang Zhang <angwerzx at 126.com>
date: 2019-07-13T16:35:04+08:00
summary:

Fix typo in re.escape documentation (GH-14722)

files:
M Doc/library/re.rst

diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 5ef72b535ce8..158248c3d147 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -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+'



More information about the Python-checkins mailing list