summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/unicode.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-08-13 20:11:50 (GMT)
committerGitHub <noreply@github.com>2020-08-13 20:11:50 (GMT)
commit474652fe9346382dbf793f20b671eb74668bebde (patch)
treee090a5b591783461601032795851e8b32d7f63e9 /Doc/c-api/unicode.rst
parent0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece (diff)
downloadcpython-474652fe9346382dbf793f20b671eb74668bebde.zip
cpython-474652fe9346382dbf793f20b671eb74668bebde.tar.gz
cpython-474652fe9346382dbf793f20b671eb74668bebde.tar.bz2
bpo-40204, doc: Fix syntax of C variables (GH-21846)
For example, fix the following Sphinx 3 errors: Doc/c-api/buffer.rst:102: WARNING: Error in declarator or parameters Invalid C declaration: Expected identifier in nested name. [error at 5] void \*obj -----^ Doc/c-api/arg.rst:130: WARNING: Unparseable C cross-reference: 'PyObject*' Invalid C declaration: Expected end of definition. [error at 8] PyObject* --------^ The modified documentation is compatible with Sphinx 2 and Sphinx 3.
Diffstat (limited to 'Doc/c-api/unicode.rst')
-rw-r--r--Doc/c-api/unicode.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 577cdf2..5518214 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -199,7 +199,7 @@ access internal read-only data of Unicode objects:
.. versionadded:: 3.3
-.. c:function:: PyUnicode_MAX_CHAR_VALUE(PyObject *o)
+.. c:macro:: PyUnicode_MAX_CHAR_VALUE(o)
Return the maximum code point that is suitable for creating another string
based on *o*, which must be in the "canonical" representation. This is