summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/memory.rst
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-10-04 23:26:36 (GMT)
committerGitHub <noreply@github.com>2022-10-04 23:26:36 (GMT)
commit8b211b4cdbcddecfcc4d1682864795b5f1438c59 (patch)
tree173b230f671257267acc13f2e4416cd13b5bec38 /Doc/c-api/memory.rst
parenta0f5599aac2037da715d09733e0a83a9cba7c37a (diff)
downloadcpython-8b211b4cdbcddecfcc4d1682864795b5f1438c59.zip
cpython-8b211b4cdbcddecfcc4d1682864795b5f1438c59.tar.gz
cpython-8b211b4cdbcddecfcc4d1682864795b5f1438c59.tar.bz2
gh-93738: Documentation C syntax (:c:type:`TYPE` -> :c:expr:`TYPE`) (#97770)
:c:type:`TYPE` -> :c:expr:`TYPE`
Diffstat (limited to 'Doc/c-api/memory.rst')
-rw-r--r--Doc/c-api/memory.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst
index 335ea00..4abbf34 100644
--- a/Doc/c-api/memory.rst
+++ b/Doc/c-api/memory.rst
@@ -265,14 +265,14 @@ The following type-oriented macros are provided for convenience. Note that
.. c:function:: TYPE* PyMem_New(TYPE, size_t n)
Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes of
- memory. Returns a pointer cast to :c:type:`TYPE*`. The memory will not have
+ memory. Returns a pointer cast to :c:expr:`TYPE*`. The memory will not have
been initialized in any way.
.. c:function:: TYPE* PyMem_Resize(void *p, TYPE, size_t n)
Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
- sizeof(TYPE))`` bytes. Returns a pointer cast to :c:type:`TYPE*`. On return,
+ sizeof(TYPE))`` bytes. Returns a pointer cast to :c:expr:`TYPE*`. On return,
*p* will be a pointer to the new memory area, or ``NULL`` in the event of
failure.