summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-29 13:31:10 (GMT)
committerGitHub <noreply@github.com>2023-09-29 13:31:10 (GMT)
commit8882b30dab237c8b460cb8d18cecc8b8d031da25 (patch)
tree04da94fe94cc22c4dc2392f67e6601ad70b0cbd6
parentd2a31319a5faa3707e9ec4547f3ff53e8c969611 (diff)
downloadcpython-8882b30dab237c8b460cb8d18cecc8b8d031da25.zip
cpython-8882b30dab237c8b460cb8d18cecc8b8d031da25.tar.gz
cpython-8882b30dab237c8b460cb8d18cecc8b8d031da25.tar.bz2
[3.12] gh-109634: Fix `:samp:` syntax (GH-110073) (#110095)
gh-109634: Fix `:samp:` syntax (GH-110073) (cherry picked from commit e27adc68ccee8345e05b7516e6b46f6c7ff53371) Co-authored-by: Jacob Coffee <jacob@z7x.org>
-rw-r--r--Doc/library/codecs.rst2
-rw-r--r--Doc/reference/lexical_analysis.rst2
-rw-r--r--Misc/NEWS.d/3.8.0a1.rst2
3 files changed, 3 insertions, 3 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 9cad790..816de9b 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) |
diff --git a/Misc/NEWS.d/3.8.0a1.rst b/Misc/NEWS.d/3.8.0a1.rst
index d4e6ddc..bf1cfaa 100644
--- a/Misc/NEWS.d/3.8.0a1.rst
+++ b/Misc/NEWS.d/3.8.0a1.rst
@@ -8253,7 +8253,7 @@ Explain how IDLE's Shell displays output.
Improve the doc about IDLE running user code. The section is renamed from
"IDLE -- console differences" is renamed "Running user code". It mostly
-covers the implications of using custom :samp:sys.std{xxx}` objects.
+covers the implications of using custom :samp:`sys.std{xxx}` objects.
..