summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-01-04 02:59:16 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-01-04 02:59:16 (GMT)
commit606e19dda3da637783e8b76b5919e0c57808bddd (patch)
tree1de6415348466544420e58b56cd7b21849eb4e41
parent8f746d83e201231a5a86af95686408e959b86900 (diff)
downloadcpython-606e19dda3da637783e8b76b5919e0c57808bddd.zip
cpython-606e19dda3da637783e8b76b5919e0c57808bddd.tar.gz
cpython-606e19dda3da637783e8b76b5919e0c57808bddd.tar.bz2
Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int
-rw-r--r--Doc/c-api/unicode.rst2
-rw-r--r--Doc/whatsnew/3.3.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 3a8b38b..37e08d6 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 86daa87..f458ae0 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: