From: Aditya Borikar Date: Mon, 27 May 2024 12:16:13 +0000 (-0600) Subject: gh-119467: Fix Py_buffer.format type and correct documentation typo (#119475) X-Git-Tag: v3.14.0a1~1756 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b26cd8ca0e6c65e4b61effea9aa44d06e926797;p=thirdparty%2FPython%2Fcpython.git gh-119467: Fix Py_buffer.format type and correct documentation typo (#119475) --- diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index 1e1cabdf242b..9500fe465c7d 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -147,9 +147,9 @@ a buffer, see :c:func:`PyObject_GetBuffer`. or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard :c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``. - .. c:member:: const char *format + .. c:member:: char *format - A *NUL* terminated string in :mod:`struct` module style syntax describing + A *NULL* terminated string in :mod:`struct` module style syntax describing the contents of a single item. If this is ``NULL``, ``"B"`` (unsigned bytes) is assumed.