summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-09-23 06:31:20 (GMT)
committerGitHub <noreply@github.com>2023-09-23 06:31:20 (GMT)
commit92af0cc580051fd1129c7a86af2cbadeb2aa36dc (patch)
tree19504cdaa115df0213978c7e25f96888b29b2861 /Doc/library/re.rst
parent5e7ea95d9d5c3b80a67ffbeebd76ce4fc327dd8e (diff)
downloadcpython-92af0cc580051fd1129c7a86af2cbadeb2aa36dc.zip
cpython-92af0cc580051fd1129c7a86af2cbadeb2aa36dc.tar.gz
cpython-92af0cc580051fd1129c7a86af2cbadeb2aa36dc.tar.bz2
gh-109634: Use :samp: role (GH-109635)
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r--Doc/library/re.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index e506b34..6069600 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -660,7 +660,7 @@ three digits in length.
Unknown escapes consisting of ``'\'`` and an ASCII letter now are errors.
.. versionchanged:: 3.8
- The ``'\N{name}'`` escape sequence has been added. As in string literals,
+ The :samp:`'\\N\\{{name}\\}'` escape sequence has been added. As in string literals,
it expands to the named Unicode character (e.g. ``'\N{EM DASH}'``).