Closes #22580: Fix documentation of PyUnicode_Tailmatch()

The result type is Py_ssize_t (and not int).
This commit is contained in:
Victor Stinner 2014-10-09 11:14:04 +02:00
parent 23030dbfe2
commit a6066ce6b1
1 changed files with 1 additions and 1 deletions

View File

@ -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),