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

This commit is contained in:
Robert DiPietro 2019-07-13 04:35:04 -04:00 committed by Xiang Zhang
parent b9a0376b0d
commit fb6c1f8d3b
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+'