diff options
author | Robert DiPietro <rdipietro@gmail.com> | 2019-07-13 08:35:04 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2019-07-13 08:35:04 (GMT) |
commit | fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf (patch) | |
tree | 39a8ba8e6f3d340ae19ccdf7a207fb42746de52a /Doc | |
parent | b9a0376b0dedf16a2f82fa43d851119d1f7a2707 (diff) | |
download | cpython-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.rst | 2 |
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+' |