mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int
This commit is contained in:
parent
8f746d83e2
commit
606e19dda3
2 changed files with 2 additions and 2 deletions
|
@ -564,7 +564,7 @@ APIs:
|
||||||
.. versionadded:: 3.3
|
.. 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)
|
Py_ssize_t length, Py_UCS4 fill_char)
|
||||||
|
|
||||||
Fill a string with a character: write *fill_char* into
|
Fill a string with a character: write *fill_char* into
|
||||||
|
|
|
@ -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_strncmp`: use :c:func:`PyUnicode_Tailmatch`
|
||||||
* :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use
|
* :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use
|
||||||
:c:func:`PyUnicode_FindChar`
|
:c:func:`PyUnicode_FindChar`
|
||||||
* :c:macro:`Py_UNICODE_FILL`
|
* :c:macro:`Py_UNICODE_FILL`: use :c:func:`PyUnicode_Fill`
|
||||||
* :c:macro:`Py_UNICODE_MATCH`
|
* :c:macro:`Py_UNICODE_MATCH`
|
||||||
|
|
||||||
Encoders:
|
Encoders:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue