From 606e19dda3da637783e8b76b5919e0c57808bddd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 4 Jan 2012 03:59:16 +0100 Subject: [PATCH] Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int --- Doc/c-api/unicode.rst | 2 +- Doc/whatsnew/3.3.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 3a8b38b636..37e08d6f45 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -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 diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 86daa875f9..f458ae0f4f 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -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: -- 2.40.0