mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
(Merge 3.4) Closes #22580: Fix documentation of PyUnicode_Tailmatch()
The result type is Py_ssize_t (and not int).
This commit is contained in:
commit
8786ea36d0
1 changed files with 1 additions and 1 deletions
|
@ -1575,7 +1575,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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue