summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-10-09 09:14:04 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-10-09 09:14:04 (GMT)
commita6066ce6b1115b8a8bff3d30848bad0be0863f08 (patch)
treec2850585d9b45ee5e633c31fdf9908bbbda5ac84 /Doc/c-api
parent23030dbfe24cdb5269c111ca10c5640df6bff668 (diff)
downloadcpython-a6066ce6b1115b8a8bff3d30848bad0be0863f08.zip
cpython-a6066ce6b1115b8a8bff3d30848bad0be0863f08.tar.gz
cpython-a6066ce6b1115b8a8bff3d30848bad0be0863f08.tar.bz2
Closes #22580: Fix documentation of PyUnicode_Tailmatch()
The result type is Py_ssize_t (and not int).
Diffstat (limited to 'Doc/c-api')
-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 4ef437c..8932915 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -1035,7 +1035,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
Unicode string.
-.. c:function:: int PyUnicode_Tailmatch(PyObject *str, PyObject *substr, Py_ssize_t start, Py_ssize_t end, int direction)
+.. c:function:: Py_ssize_t PyUnicode_Tailmatch(PyObject *str, PyObject *substr, Py_ssize_t start, Py_ssize_t end, int direction)
Return 1 if *substr* matches ``str[start:end]`` at the given tail end
(*direction* == -1 means to do a prefix match, *direction* == 1 a suffix match),