]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (#114373)
authorNikita Sobolev <mail@sobolevn.me>
Sun, 21 Jan 2024 09:34:43 +0000 (12:34 +0300)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 09:34:43 +0000 (11:34 +0200)
Doc/c-api/memory.rst
Doc/tools/.nitignore

index 1f392e55078e77528a91ac53804f937e43960f61..c05282ffc5952199331826e817e27d1d7adabe9b 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 5935d059877a91717cc4596ad6e129d60bafe690..4f2e4fdd43490cca5a884149029e2b73a451aef5 100644 (file)
@@ -10,7 +10,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