10000 Fix typo in re.escape documentation (GH-14722) · python/cpython@184d06b · GitHub
[go: up one dir, main page]

Skip to content

Commit 184d06b

Browse files
Fix typo in re.escape documentation (GH-14722)
(cherry picked from commit fb6c1f8) Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
1 parent 71435f6 commit 184d06b

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
@@ -936,7 +936,7 @@ form.
936936
>>> print('|'.join(map(re.escape, sorted(operators, reverse=True))))
937937
/|\-|\+|\*\*|\*
938938

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

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

0 commit comments

Comments
 (0)
0