]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109634: Fix `:samp:` syntax (GH-110073)
authorJacob Coffee <jacob@z7x.org>
Fri, 29 Sep 2023 11:21:34 +0000 (06:21 -0500)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 11:21:34 +0000 (14:21 +0300)
Doc/library/codecs.rst
Doc/reference/lexical_analysis.rst
Misc/NEWS.d/3.8.0a1.rst

index 053bf64addb821a2b9899a763227bf81510a4182..2db4a67d1973d5bd72b619c64db37bf51e523dfa 100644 (file)
@@ -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       |
index 9fd80b1cb7f84cc91528a32998972172afd735e4..e54e0ebb7fae965b36228cc69665ac0677d31913 100644 (file)
@@ -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) |
index 57f72e95b029fc956054e71859c490498ba72f5b..3cbbbf7465032b736017987d662707f7d5140708 100644 (file)
@@ -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.
 
 ..