8000 gh-119467: Fix Py_buffer.format type and correct documentation typo (… · python/cpython@3b26cd8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b26cd8

Browse files
authored
gh-119467: Fix Py_buffer.format type and correct documentation typo (#119475)
1 parent c7a5e1e commit 3b26cd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/buffer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ a buffer, see :c:func:`PyObject_GetBuffer`.
147147
or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard
148148
:c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``.
149149

150-
.. c:member:: const char *format
150+
.. c:member:: char *format
151151
152-
A *NUL* terminated string in :mod:`struct` module style syntax describing
152+
A *NULL* terminated string in :mod:`struct` module style syntax describing
153153
the contents of a single item. If this is ``NULL``, ``"B"`` (unsigned bytes)
154154
is assumed.
155155

0 commit comments

Comments
 (0)
0