]> granicus.if.org Git - python/commitdiff
Closes #22580: Fix documentation of PyUnicode_Tailmatch()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 9 Oct 2014 09:11:25 +0000 (11:11 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 9 Oct 2014 09:11:25 +0000 (11:11 +0200)
The result type is Py_ssize_t (and not int).

Doc/c-api/unicode.rst

index 4352351ccabb76d1b64cbe2df89838cfe9dccd82..24bef8ec597273d6808a92e236d2a3ee5bd03c65 100644 (file)
@@ -1568,7 +1568,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
    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)
 
    Return 1 if *substr* matches ``str[start:end]`` at the given tail end