]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix(doc): set correct RST syntax for c:function (GH-18589)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 21 Feb 2020 14:09:24 +0000 (06:09 -0800)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 14:09:24 +0000 (06:09 -0800)
The current content is not rendered since the syntax is not correct.
(cherry picked from commit d4d17fd2cf69e7c8f4cd03fbf2d575370945b952)

Co-authored-by: Julien Danjou <julien@danjou.info>
Doc/c-api/memory.rst

index f14e1e123a0df4ad602c7cf4d80e071ab3bfb8e6..f4c94c4f3ce8d99afeee9f18b78df7f48c42de00 100644 (file)
@@ -533,7 +533,7 @@ tracemalloc C API
 
 .. versionadded:: 3.7
 
-.. c:function: int PyTraceMalloc_Track(unsigned int domain, uintptr_t ptr, size_t size)
+.. c:function:: int PyTraceMalloc_Track(unsigned int domain, uintptr_t ptr, size_t size)
 
    Track an allocated memory block in the :mod:`tracemalloc` module.
 
@@ -542,7 +542,7 @@ tracemalloc C API
 
    If memory block is already tracked, update the existing trace.
 
-.. c:function: int PyTraceMalloc_Untrack(unsigned int domain, uintptr_t ptr)
+.. c:function:: int PyTraceMalloc_Untrack(unsigned int domain, uintptr_t ptr)
 
    Untrack an allocated memory block in the :mod:`tracemalloc` module.
    Do nothing if the block was not tracked.