diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-01-21 09:34:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 09:34:43 (GMT) |
commit | 47133d8d869c94c4d1f340b5481cc3f2cdc7d68b (patch) | |
tree | 1700751239329d8f4b6f436486ef75a7a4e8efbb | |
parent | fbc28748eaf578436ef9662363575f6bdde2e2f7 (diff) | |
download | cpython-47133d8d869c94c4d1f340b5481cc3f2cdc7d68b.zip cpython-47133d8d869c94c4d1f340b5481cc3f2cdc7d68b.tar.gz cpython-47133d8d869c94c4d1f340b5481cc3f2cdc7d68b.tar.bz2 |
gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (#114373)
-rw-r--r-- | Doc/c-api/memory.rst | 4 | ||||
-rw-r--r-- | Doc/tools/.nitignore | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst index 1f392e5..c05282f 100644 --- a/Doc/c-api/memory.rst +++ b/Doc/c-api/memory.rst @@ -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. diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index 5935d05..4f2e4fd 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -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 |