diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-10-09 09:11:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-10-09 09:11:25 (GMT) |
commit | 13d3aa502d305f9a92a53af561ed46d53daf1d5b (patch) | |
tree | cee80c86d5ace0da9f8335d0ce668085833b8c16 /Doc/c-api | |
parent | 92cb0a361f7bb76c77c97b27b2c9cfcc5bb6fb3d (diff) | |
download | cpython-13d3aa502d305f9a92a53af561ed46d53daf1d5b.zip cpython-13d3aa502d305f9a92a53af561ed46d53daf1d5b.tar.gz cpython-13d3aa502d305f9a92a53af561ed46d53daf1d5b.tar.bz2 |
Closes #22580: Fix documentation of PyUnicode_Tailmatch()
The result type is Py_ssize_t (and not int).
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/unicode.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 4352351..24bef8e 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -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 |