gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475)
(cherry picked from commit
3b26cd8ca0e6c65e4b61effea9aa44d06e926797)
Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
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.