[Python-checkins] gh-89653: PEP 670: Fix Sphinx syntax in Unicode doc (#92707)

vstinner webhook-mailer at python.org
Wed May 11 21:38:53 EDT 2022


https://github.com/python/cpython/commit/1a9645f5374325b41b559138ce9edb61da032b1e
commit: 1a9645f5374325b41b559138ce9edb61da032b1e
branch: main
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2022-05-12T03:38:49+02:00
summary:

gh-89653: PEP 670: Fix Sphinx syntax in Unicode doc (#92707)

files:
M Doc/c-api/unicode.rst

diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index d1e6b34dff71d..792a469c5566f 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -377,19 +377,19 @@ These APIs can be used for fast direct character conversions:
 
 These APIs can be used to work with surrogates:
 
-.. c:func:: int Py_UNICODE_IS_SURROGATE(Py_UCS4 ch)
+.. c:function:: int Py_UNICODE_IS_SURROGATE(Py_UCS4 ch)
 
    Check if *ch* is a surrogate (``0xD800 <= ch <= 0xDFFF``).
 
-.. c:func:: int Py_UNICODE_IS_HIGH_SURROGATE(Py_UCS4 ch)
+.. c:function:: int Py_UNICODE_IS_HIGH_SURROGATE(Py_UCS4 ch)
 
    Check if *ch* is a high surrogate (``0xD800 <= ch <= 0xDBFF``).
 
-.. c:func:: int Py_UNICODE_IS_LOW_SURROGATE(Py_UCS4 ch)
+.. c:function:: int Py_UNICODE_IS_LOW_SURROGATE(Py_UCS4 ch)
 
    Check if *ch* is a low surrogate (``0xDC00 <= ch <= 0xDFFF``).
 
-.. c:func:: Py_UCS4 Py_UNICODE_JOIN_SURROGATES(Py_UCS4 high, Py_UCS4 low)
+.. c:function:: Py_UCS4 Py_UNICODE_JOIN_SURROGATES(Py_UCS4 high, Py_UCS4 low)
 
    Join two surrogate characters and return a single :c:type:`Py_UCS4` value.
    *high* and *low* are respectively the leading and trailing surrogates in a



More information about the Python-checkins mailing list