summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/unicode.rst
diff options
context:
space:
mode:
authorAmmar Askar <ammar@ammaraskar.com>2021-07-29 09:10:03 (GMT)
committerGitHub <noreply@github.com>2021-07-29 09:10:03 (GMT)
commit47fd4726a2ce8599cc397ddeae40f70eb471e868 (patch)
tree62e3f7cf7666fd2e805ebbb507ca43ab00399112 /Doc/c-api/unicode.rst
parenta390ebea17a96d1c93fc5f75b1e19916090a4561 (diff)
downloadcpython-47fd4726a2ce8599cc397ddeae40f70eb471e868.zip
cpython-47fd4726a2ce8599cc397ddeae40f70eb471e868.tar.gz
cpython-47fd4726a2ce8599cc397ddeae40f70eb471e868.tar.bz2
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724)
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 ddc2346..6cb453e 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -149,7 +149,7 @@ access internal read-only data of Unicode objects:
``PyUnicode_WCHAR_KIND`` is deprecated.
-.. c:function:: int PyUnicode_KIND(PyObject *o)
+.. c:function:: unsigned int PyUnicode_KIND(PyObject *o)
Return one of the PyUnicode kind constants (see above) that indicate how many
bytes per character this Unicode object uses to store its data. *o* has to