summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-03-09 11:27:19 (GMT)
committerGitHub <noreply@github.com>2021-03-09 11:27:19 (GMT)
commit5ca02c4799c07dba5192f87f9f2378dc24097166 (patch)
tree919661245b4f56c2953bcd640091ffb7dab6cd22 /Doc/c-api
parent6d4273356764a3837c914b2aced7a668c534e0be (diff)
downloadcpython-5ca02c4799c07dba5192f87f9f2378dc24097166.zip
cpython-5ca02c4799c07dba5192f87f9f2378dc24097166.tar.gz
cpython-5ca02c4799c07dba5192f87f9f2378dc24097166.tar.bz2
bpo-3329: Fix typo in PyObjectArenaAllocator doc (GH-24795)
(cherry picked from commit 0d6bd1ca7c683137d52041194f3a2b02219f225a) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/memory.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst
index 87425bc..91b901d 100644
--- a/Doc/c-api/memory.rst
+++ b/Doc/c-api/memory.rst
@@ -516,7 +516,7 @@ Customize pymalloc Arena Allocator
+--------------------------------------------------+---------------------------------------+
| ``void* alloc(void *ctx, size_t size)`` | allocate an arena of size bytes |
+--------------------------------------------------+---------------------------------------+
- | ``void free(void *ctx, size_t size, void *ptr)`` | free an arena |
+ | ``void free(void *ctx, void *ptr, size_t size)`` | free an arena |
+--------------------------------------------------+---------------------------------------+
.. c:function:: void PyObject_GetArenaAllocator(PyObjectArenaAllocator *allocator)