summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-07-29 09:31:02 (GMT)
committerGitHub <noreply@github.com>2021-07-29 09:31:02 (GMT)
commitb5bdc0c407d2d0587e591989e390ada9b9709502 (patch)
treee0529a9297c0141785d09f0c961ba3bc8f0dc138 /Doc
parent405f5c54914483607194a3ba6d4e50533d92bad1 (diff)
downloadcpython-b5bdc0c407d2d0587e591989e390ada9b9709502.zip
cpython-b5bdc0c407d2d0587e591989e390ada9b9709502.tar.gz
cpython-b5bdc0c407d2d0587e591989e390ada9b9709502.tar.bz2
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27439)
(cherry picked from commit 47fd4726a2ce8599cc397ddeae40f70eb471e868) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Diffstat (limited to 'Doc')
-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 8d4eef8..cb2438e 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