diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-10-09 09:11:49 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-10-09 09:11:49 (GMT) |
commit | 8786ea36d08670de706507f8639f68f0d3c762f3 (patch) | |
tree | 18188f709bd61ac3d295f1c617bd538670b0a233 | |
parent | 882c95c7dcbc4164772b701d3a3caa20d3ef4546 (diff) | |
parent | 13d3aa502d305f9a92a53af561ed46d53daf1d5b (diff) | |
download | cpython-8786ea36d08670de706507f8639f68f0d3c762f3.zip cpython-8786ea36d08670de706507f8639f68f0d3c762f3.tar.gz cpython-8786ea36d08670de706507f8639f68f0d3c762f3.tar.bz2 |
(Merge 3.4) Closes #22580: Fix documentation of PyUnicode_Tailmatch()
The result type is Py_ssize_t (and not int).
-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 2d1bae1..d86f99a 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -1575,7 +1575,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 |