fix(doc): set correct RST syntax for c:function (GH-18589)

The current content is not rendered since the syntax is not correct.
(cherry picked from commit d4d17fd2cf)

Co-authored-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Miss Islington (bot) 2020-02-21 02:54:00 -08:00 committed by GitHub
parent a207512121
commit 9ce361d3bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ tracemalloc C API
.. versionadded:: 3.7 .. 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. 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. 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. Untrack an allocated memory block in the :mod:`tracemalloc` module.
Do nothing if the block was not tracked. Do nothing if the block was not tracked.