Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13d3aa5

Browse files
committed
Closes #22580: Fix documentation of PyUnicode_Tailmatch()
The result type is Py_ssize_t (and not int).
1 parent 92cb0a3 commit 13d3aa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/c-api/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
15681568
Unicode string.
15691569
15701570
1571-
.. c:function:: int PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \
1571+
.. c:function:: Py_ssize_t PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \
15721572
Py_ssize_t start, Py_ssize_t end, int direction)
15731573
15741574
Return 1 if *substr* matches ``str[start:end]`` at the given tail end

0 commit comments

Comments
 (0)