diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-13 08:42:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-13 08:42:25 (GMT) |
commit | 25d371ab74b9413231b2e8ea47be0fa49a04136d (patch) | |
tree | 512124d01594191db43f7660ebb7c3435267b5c5 | |
parent | 36101c2c5daf692d1716e17720c6c5197f28e25d (diff) | |
download | cpython-25d371ab74b9413231b2e8ea47be0fa49a04136d.zip cpython-25d371ab74b9413231b2e8ea47be0fa49a04136d.tar.gz cpython-25d371ab74b9413231b2e8ea47be0fa49a04136d.tar.bz2 |
Fix typo in re.escape documentation (GH-14722)
(cherry picked from commit fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf)
Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
-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+' |