Skip to content

Commit 1a9645f

Browse files
authored
gh-89653: PEP 670: Fix Sphinx syntax in Unicode doc (#92707)
1 parent d0c9353 commit 1a9645f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/unicode.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -377,19 +377,19 @@ These APIs can be used for fast direct character conversions:
377377
378378
These APIs can be used to work with surrogates:
379379
380-
.. c:func:: int Py_UNICODE_IS_SURROGATE(Py_UCS4 ch)
380+
.. c:function:: int Py_UNICODE_IS_SURROGATE(Py_UCS4 ch)
381381
382382
Check if *ch* is a surrogate (``0xD800 <= ch <= 0xDFFF``).
383383
384-
.. c:func:: int Py_UNICODE_IS_HIGH_SURROGATE(Py_UCS4 ch)
384+
.. c:function:: int Py_UNICODE_IS_HIGH_SURROGATE(Py_UCS4 ch)
385385
386386
Check if *ch* is a high surrogate (``0xD800 <= ch <= 0xDBFF``).
387387
388-
.. c:func:: int Py_UNICODE_IS_LOW_SURROGATE(Py_UCS4 ch)
388+
.. c:function:: int Py_UNICODE_IS_LOW_SURROGATE(Py_UCS4 ch)
389389
390390
Check if *ch* is a low surrogate (``0xDC00 <= ch <= 0xDFFF``).
391391
392-
.. c:func:: Py_UCS4 Py_UNICODE_JOIN_SURROGATES(Py_UCS4 high, Py_UCS4 low)
392+
.. c:function:: Py_UCS4 Py_UNICODE_JOIN_SURROGATES(Py_UCS4 high, Py_UCS4 low)
393393
394394
Join two surrogate characters and return a single :c:type:`Py_UCS4` value.
395395
*high* and *low* are respectively the leading and trailing surrogates in a

0 commit comments

Comments
 (0)