Skip to content

Commit ba6b3ce

Browse files
[3.14] Docs: Fix typos in the "Memory Management" section (GH-151243) (GH-151248)
Docs: Fix typos in the "Memory Management" section (GH-151243) (cherry picked from commit 8c0e251) Co-authored-by: Manoj K M <manojkm24dev@gmail.com>
1 parent c5275d7 commit ba6b3ce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/c-api/memory.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ memory footprint as a whole. Consequently, under certain circumstances, the
8181
Python memory manager may or may not trigger appropriate actions, like garbage
8282
collection, memory compaction or other preventive procedures. Note that by using
8383
the C library allocator as shown in the previous example, the allocated memory
84-
for the I/O buffer escapes completely the Python memory manager.
84+
for the I/O buffer completely escapes the Python memory manager.
8585

8686
.. seealso::
8787

@@ -161,7 +161,7 @@ zero bytes.
161161
162162
.. c:function:: void* PyMem_RawCalloc(size_t nelem, size_t elsize)
163163
164-
Allocates *nelem* elements each whose size in bytes is *elsize* and returns
164+
Allocates *nelem* elements each of size *elsize* bytes and returns
165165
a pointer of type :c:expr:`void*` to the allocated memory, or ``NULL`` if the
166166
request fails. The memory is initialized to zeros.
167167
@@ -239,7 +239,7 @@ In the GIL-enabled build (default build) the
239239
240240
.. c:function:: void* PyMem_Calloc(size_t nelem, size_t elsize)
241241
242-
Allocates *nelem* elements each whose size in bytes is *elsize* and returns
242+
Allocates *nelem* elements each of size *elsize* bytes and returns
243243
a pointer of type :c:expr:`void*` to the allocated memory, or ``NULL`` if the
244244
request fails. The memory is initialized to zeros.
245245
@@ -372,7 +372,7 @@ The :ref:`default object allocator <default-memory-allocators>` uses the
372372
373373
.. c:function:: void* PyObject_Calloc(size_t nelem, size_t elsize)
374374
375-
Allocates *nelem* elements each whose size in bytes is *elsize* and returns
375+
Allocates *nelem* elements each of size *elsize* bytes and returns
376376
a pointer of type :c:expr:`void*` to the allocated memory, or ``NULL`` if the
377377
request fails. The memory is initialized to zeros.
378378

0 commit comments

Comments
 (0)