diff options
author | yuki <drsuaimqjgar@gmail.com> | 2023-04-07 23:52:31 +0000 |
---|---|---|
committer | yuki <drsuaimqjgar@gmail.com> | 2023-04-08 00:13:45 +0000 |
commit | c1dc1800c058f8d7254b996920d57443bd9d8b31 (patch) | |
tree | d8ca890e16095e7bc49b0b029260f72c82f5be02 /doc/source/reference/c-api | |
parent | 954aa5856c9812b71162415b6573b397368a1da7 (diff) | |
download | numpy-c1dc1800c058f8d7254b996920d57443bd9d8b31.tar.gz |
DOC: Fix parameter type of `PyArray_DiscardWritebackIfCopy`
The type of parameter is `PyArrayObject`, not `PyObject`.
ref: https://github.com/numpy/numpy/blob/main/numpy/core/include/numpy/ndarrayobject.h#L155-L167
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r-- | doc/source/reference/c-api/array.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst index 79f5e32dc..fa840a742 100644 --- a/doc/source/reference/c-api/array.rst +++ b/doc/source/reference/c-api/array.rst @@ -3581,7 +3581,7 @@ Miscellaneous Macros Returns the reference count of any Python object. -.. c:function:: void PyArray_DiscardWritebackIfCopy(PyObject* obj) +.. c:function:: void PyArray_DiscardWritebackIfCopy(PyArrayObject* obj) If ``obj->flags`` has :c:data:`NPY_ARRAY_WRITEBACKIFCOPY`, this function clears the flags, `DECREF` s |