diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-27 14:34:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 12:34:13 +0000 |
commit | f1302c1e4785871197048d3701a5ecf4ed145596 (patch) | |
tree | 69dc28e3c9d0c908461aa3e928880c642e7b4bd8 | |
parent | 46d77128299ce6fe78c3628b5a0ab768c9645172 (diff) | |
download | cpython3-upstream-3.13.tar.gz |
[3.13] gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475) (#119602)upstream-3.13
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>
-rw-r--r-- | Doc/c-api/buffer.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index 1e1cabdf24..9500fe465c 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. |