Skip to content

Commit bcadcde

Browse files
gh-102259: Fix re doc issue regarding right square brackets (#102264)
Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent d71edbd commit bcadcde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/re.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ The special characters are:
271271

272272
* To match a literal ``']'`` inside a set, precede it with a backslash, or
273273
place it at the beginning of the set. For example, both ``[()[\]{}]`` and
274-
``[]()[{}]`` will both match a parenthesis.
274+
``[]()[{}]`` will match a right bracket, as well as left bracket, braces,
275+
and parentheses.
275276

276277
.. .. index:: single: --; in regular expressions
277278
.. .. index:: single: &&; in regular expressions

0 commit comments

Comments
 (0)