]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119467: Fix Py_buffer.format type and correct documentation typo (#119475)
authorAditya Borikar <adityaborikar2@gmail.com>
Mon, 27 May 2024 12:16:13 +0000 (06:16 -0600)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 12:16:13 +0000 (17:46 +0530)
Doc/c-api/buffer.rst

index 1e1cabdf242bd133b2328bd3474721f522939185..9500fe465c7d94ba994052346e535c8309b5b76e 100644 (file)
@@ -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.