]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373) (#114377)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 Jan 2024 09:41:00 +0000 (10:41 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 09:41:00 +0000 (09:41 +0000)
gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373)
(cherry picked from commit 47133d8d869c94c4d1f340b5481cc3f2cdc7d68b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/c-api/memory.rst
Doc/tools/.nitignore

index 52ef4170e8810bdcbfb0f5875a92aa4eb1250652..ec8b828ecb7837458b1714cbe7dcb08384db1ba3 100644 (file)
@@ -267,14 +267,14 @@ The following type-oriented macros are provided for convenience.  Note  that
 .. c:macro:: PyMem_New(TYPE, n)
 
    Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes of
-   memory.  Returns a pointer cast to :c:expr:`TYPE*`.  The memory will not have
+   memory.  Returns a pointer cast to ``TYPE*``.  The memory will not have
    been initialized in any way.
 
 
 .. c:macro:: PyMem_Resize(p, TYPE, n)
 
    Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n *
-   sizeof(TYPE))`` bytes.  Returns a pointer cast to :c:expr:`TYPE*`. On return,
+   sizeof(TYPE))`` bytes.  Returns a pointer cast to ``TYPE*``. On return,
    *p* will be a pointer to the new memory area, or ``NULL`` in the event of
    failure.
 
index 0d4384bda8d5e9b99c55f55cb6c4d4d3b0f3269e..51307c3c725ed129992d20e70c179d86665ef13b 100644 (file)
@@ -11,7 +11,6 @@ Doc/c-api/gcsupport.rst
 Doc/c-api/init.rst
 Doc/c-api/init_config.rst
 Doc/c-api/intro.rst
-Doc/c-api/memory.rst
 Doc/c-api/memoryview.rst
 Doc/c-api/module.rst
 Doc/c-api/object.rst