Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b211b4

Browse filesBrowse files
authored
gh-93738: Documentation C syntax (:c:type:TYPE -> :c:expr:TYPE) (#97770)
:c:type:`TYPE` -> :c:expr:`TYPE`
1 parent a0f5599 commit 8b211b4
Copy full SHA for 8b211b4

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎Doc/c-api/memory.rst

Copy file name to clipboardExpand all lines: Doc/c-api/memory.rst
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.