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

(cherry picked from commit fb6c1f8d3b)

Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-07-13 01:42:25 -07:00 committed by GitHub
parent 36101c2c5d
commit 25d371ab74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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+'