Commit 032eede0 authored by Victor Stinner's avatar Victor Stinner

Closes #22580: Fix documentation of PyUnicode_Tailmatch()

The result type is Py_ssize_t (and not int).
parent c9472193
...@@ -1568,7 +1568,7 @@ They all return *NULL* or ``-1`` if an exception occurs. ...@@ -1568,7 +1568,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
Unicode string. Unicode string.
.. c:function:: int PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \ .. c:function:: Py_ssize_t PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \
Py_ssize_t start, Py_ssize_t end, int direction) Py_ssize_t start, Py_ssize_t end, int direction)
Return 1 if *substr* matches ``str[start:end]`` at the given tail end Return 1 if *substr* matches ``str[start:end]`` at the given tail end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment