8000 Fix typo in re.escape documentation (GH-14722) · miss-islington/cpython@7cf1b00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cf1b00

Browse files
rdipietromiss-islington
authored andcommitted
Fix typo in re.escape documentation (pythonGH-14722)
(cherry picked from commit fb6c1f8) Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
1 parent 36101c2 commit 7cf1b00

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)
0