summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRobert DiPietro <rdipietro@gmail.com>2019-07-13 08:35:04 (GMT)
committerXiang Zhang <angwerzx@126.com>2019-07-13 08:35:04 (GMT)
commitfb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf (patch)
tree39a8ba8e6f3d340ae19ccdf7a207fb42746de52a /Doc
parentb9a0376b0dedf16a2f82fa43d851119d1f7a2707 (diff)
downloadcpython-fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf.zip
cpython-fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf.tar.gz
cpython-fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf.tar.bz2
Fix typo in re.escape documentation (GH-14722)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 5ef72b5..158248c 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+'