Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 606e19d

Browse files
author
Victor Stinner
committed
Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int
1 parent 8f746d8 commit 606e19d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/c-api/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ APIs:
564564
.. versionadded:: 3.3
565565
566566
567-
.. c:function:: int PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \
567+
.. c:function:: Py_ssize_t PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \
568568
Py_ssize_t length, Py_UCS4 fill_char)
569569
570570
Fill a string with a character: write *fill_char* into

Doc/whatsnew/3.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ Functions and macros manipulating Py_UNICODE* strings:
828828
* :c:macro:`Py_UNICODE_strncmp`: use :c:func:`PyUnicode_Tailmatch`
829829
* :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use
830830
:c:func:`PyUnicode_FindChar`
831-
* :c:macro:`Py_UNICODE_FILL`
831+
* :c:macro:`Py_UNICODE_FILL`: use :c:func:`PyUnicode_Fill`
832832
* :c:macro:`Py_UNICODE_MATCH`
833833

834834
Encoders:

0 commit comments

Comments
 (0)