Skip to content

Commit

Permalink
[3.13] gh-119467: Fix Py_buffer.format type and correct documentation…
Browse files Browse the repository at this point in the history
… typo (GH-119475) (#119602)

gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475)
(cherry picked from commit 3b26cd8)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
  • Loading branch information
miss-islington and adiaholic authored May 27, 2024
1 parent 46d7712 commit f1302c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/c-api/buffer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit f1302c1

Please sign in to comment.