summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2020-02-21 11:47:41 +0100
committerGitHub <noreply@github.com>2020-02-21 11:47:41 +0100
commitd4d17fd2cf69e7c8f4cd03fbf2d575370945b952 (patch)
tree37a9286b197024fb6d2cd0055910d49afe22115d
parentc2ac4cf040ea950bf552d1e77bea613a1a5474fe (diff)
downloadcpython-git-d4d17fd2cf69e7c8f4cd03fbf2d575370945b952.tar.gz
fix(doc): set correct RST syntax for c:function (GH-18589)
The current content is not rendered since the syntax is not correct.
-rw-r--r--Doc/c-api/memory.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst
index ba7bd3b9a5..8a8542f047 100644
--- a/Doc/c-api/memory.rst
+++ b/Doc/c-api/memory.rst
@@ -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.