summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJacob Coffee <jacob@z7x.org>2023-09-29 11:21:34 (GMT)
committerGitHub <noreply@github.com>2023-09-29 11:21:34 (GMT)
commite27adc68ccee8345e05b7516e6b46f6c7ff53371 (patch)
treee88520e4e6b65070dabfec0290571d6d1ee5e94c /Doc
parente260087a8e7f1a564f9b797af6291f99e225a73c (diff)
downloadcpython-e27adc68ccee8345e05b7516e6b46f6c7ff53371.zip
cpython-e27adc68ccee8345e05b7516e6b46f6c7ff53371.tar.gz
cpython-e27adc68ccee8345e05b7516e6b46f6c7ff53371.tar.bz2
gh-109634: Fix `:samp:` syntax (GH-110073)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/codecs.rst2
-rw-r--r--Doc/reference/lexical_analysis.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 053bf64..2db4a67 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -1350,7 +1350,7 @@ encodings.
+--------------------+---------+---------------------------+
| raw_unicode_escape | | Latin-1 encoding with |
| | | :samp:`\\u{XXXX}` and |
-| | | :samp:`\\U{XXXXXXXX}`` |
+| | | :samp:`\\U{XXXXXXXX}` |
| | | for other code points. |
| | | Existing |
| | | backslashes are not |
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index 9fd80b1..e54e0eb 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -582,7 +582,7 @@ Standard C. The recognized escape sequences are:
+-------------------------+---------------------------------+-------+
| ``\v`` | ASCII Vertical Tab (VT) | |
+-------------------------+---------------------------------+-------+
-| :samp:`\\{ooo}` | Character with octal value | (2,4) |
+| :samp:`\\\\{ooo}` | Character with octal value | (2,4) |
| | *ooo* | |
+-------------------------+---------------------------------+-------+
| :samp:`\\x{hh}` | Character with hex value *hh* | (3,4) |