Skip to content

Commit f14aac4

Browse files
committed
DOC: fixes from review
1 parent cc8d2cc commit f14aac4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/neps/nep-0049.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,14 @@ NumPy C-API functions
118118
119119
typedef struct {
120120
char name[128]; /* multiple of 64 to keep the struct aligned */
121-
PyDataMemAllocator allocator;
121+
PyDataMemAllocator allocator;
122122
} PyDataMem_Handler;
123123
124124
where the allocator structure is
125125

126126
.. code-block:: c
127-
/* The declaration of free differs from PyMemAllocatorEx */
127+
128+
/* The declaration of free differs from PyMemAllocatorEx */
128129
typedef struct {
129130
void *ctx;
130131
void* (*malloc) (void *ctx, size_t size);
@@ -284,7 +285,7 @@ Discussion
284285
----------
285286
286287
The discussion on the mailing list led to the ``PyDataMemAllocator`` struct
287-
with a ``context`` field like ``PyMemAllocatorEx`` but with a different
288+
with a ``context`` field like :c:type:`PyMemAllocatorEx` but with a different
288289
signature for ``free``.
289290
290291

0 commit comments

Comments
 (0)