Skip to content

Commit 196292e

Browse files
sobolevnaisk
authored andcommitted
pythongh-101100: Fix sphinx warnings in Doc/c-api/memory.rst (python#114373)
1 parent 4403fdb commit 196292e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Doc/c-api/memory.rst

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

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Doc/c-api/gcsupport.rst
1010
Doc/c-api/init.rst
1111
Doc/c-api/init_config.rst
1212
Doc/c-api/intro.rst
13-
Doc/c-api/memory.rst
1413
Doc/c-api/memoryview.rst
1514
Doc/c-api/module.rst
1615
Doc/c-api/object.rst

0 commit comments

Comments
 (0)