]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix references within buffer protocol docs (#1016)
authorEric Wieser <wieser.eric@gmail.com>
Thu, 6 Apr 2017 17:36:43 +0000 (18:36 +0100)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 6 Apr 2017 17:36:43 +0000 (20:36 +0300)
Doc/c-api/typeobj.rst

index 9233278b577e7d2d6f93e8d176f515f706986483..2ebbd52a3819603b02fee554d6dd1ca5fc5943da 100644 (file)
@@ -1377,23 +1377,23 @@ member in the :c:type:`PyTypeObject` structure should be *NULL*.  Otherwise, the
    Structure used to hold the function pointers which define an implementation of
    the buffer protocol.
 
-   The first slot is :attr:`bf_getreadbuffer`, of type :c:type:`getreadbufferproc`.
+   The first slot is :attr:`bf_getreadbuffer`, of type :c:type:`readbufferproc`.
    If this slot is *NULL*, then the object does not support reading from the
    internal data.  This is non-sensical, so implementors should fill this in, but
    callers should test that the slot contains a non-*NULL* value.
 
    The next slot is :attr:`bf_getwritebuffer` having type
-   :c:type:`getwritebufferproc`.  This slot may be *NULL* if the object does not
+   :c:type:`writebufferproc`.  This slot may be *NULL* if the object does not
    allow writing into its returned buffers.
 
-   The third slot is :attr:`bf_getsegcount`, with type :c:type:`getsegcountproc`.
+   The third slot is :attr:`bf_getsegcount`, with type :c:type:`segcountproc`.
    This slot must not be *NULL* and is used to inform the caller how many segments
    the object contains.  Simple objects such as :c:type:`PyString_Type` and
    :c:type:`PyBuffer_Type` objects contain a single segment.
 
    .. index:: single: PyType_HasFeature()
 
-   The last slot is :attr:`bf_getcharbuffer`, of type :c:type:`getcharbufferproc`.
+   The last slot is :attr:`bf_getcharbuffer`, of type :c:type:`charbufferproc`.
    This slot will only be present if the :const:`Py_TPFLAGS_HAVE_GETCHARBUFFER`
    flag is present in the :c:member:`~PyTypeObject.tp_flags` field of the object's
    :c:type:`PyTypeObject`. Before using this slot, the caller should test whether it