]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix(doc): set correct RST syntax for c:function (GH-18589)
authorJulien Danjou <julien@danjou.info>
Fri, 21 Feb 2020 10:47:41 +0000 (11:47 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 10:47:41 +0000 (11:47 +0100)
The current content is not rendered since the syntax is not correct.

Doc/c-api/memory.rst

index ba7bd3b9a53878b66748044c45d7c70d6c891463..8a8542f0479ec595d08358f16c069ebbd7f80153 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.