Skip to content

Commit 8b211b4

Browse files
authored
pythongh-93738: Documentation C syntax (:c:type:TYPE -> :c:expr:TYPE) (python#97770)
:c:type:`TYPE` -> :c:expr:`TYPE`
1 parent a0f5599 commit 8b211b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/memory.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ The following type-oriented macros are provided for convenience. Note that
265265
.. c:function:: TYPE* PyMem_New(TYPE, size_t n)
266266
267267
Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes of
268-
memory. Returns a pointer cast to :c:type:`TYPE*`. The memory will not have
268+
memory. Returns a pointer cast to :c:expr:`TYPE*`. The memory will not have
269269
been initialized in any way.
270270
271271
272272
.. c:function:: TYPE* PyMem_Resize(void *p, TYPE, size_t n)
273273
274274
Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
275-
sizeof(TYPE))`` bytes. Returns a pointer cast to :c:type:`TYPE*`. On return,
275+
sizeof(TYPE))`` bytes. Returns a pointer cast to :c:expr:`TYPE*`. On return,
276276
*p* will be a pointer to the new memory area, or ``NULL`` in the event of
277277
failure.
278278

0 commit comments

Comments
 (0)