Skip to content

Commit fb6c1f8

Browse files
rdipietrozhangyangyu
authored andcommitted
Fix typo in re.escape documentation (GH-14722)
1 parent b9a0376 commit fb6c1f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ form.
942942
>>> print('|'.join(map(re.escape, sorted(operators, reverse=True))))
943943
/|\-|\+|\*\*|\*
944944

945-
This functions must not be used for the replacement string in :func:`sub`
945+
This function must not be used for the replacement string in :func:`sub`
946946
and :func:`subn`, only backslashes should be escaped. For example::
947947

948948
>>> digits_re = r'\d+'

0 commit comments

Comments
 (0)