Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int

This commit is contained in:
Victor Stinner 2012-01-04 03:59:16 +01:00
parent 8f746d83e2
commit 606e19dda3
2 changed files with 2 additions and 2 deletions

View File

@ -564,7 +564,7 @@ APIs:
.. versionadded:: 3.3
.. c:function:: int PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \
.. c:function:: Py_ssize_t PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \
Py_ssize_t length, Py_UCS4 fill_char)
Fill a string with a character: write *fill_char* into

View File

@ -828,7 +828,7 @@ Functions and macros manipulating Py_UNICODE* strings:
* :c:macro:`Py_UNICODE_strncmp`: use :c:func:`PyUnicode_Tailmatch`
* :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use
:c:func:`PyUnicode_FindChar`
* :c:macro:`Py_UNICODE_FILL`
* :c:macro:`Py_UNICODE_FILL`: use :c:func:`PyUnicode_Fill`
* :c:macro:`Py_UNICODE_MATCH`
Encoders: