diff options
author | Matti Picus <matti.picus@gmail.com> | 2023-04-07 13:12:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 13:12:03 +0300 |
commit | 5e5ed9c4a50554dd71bcdac9227e3e57661e7705 (patch) | |
tree | 6173eb7ac12982a8d9eb5cd5c87474c4966d47ed /doc/source/reference/c-api | |
parent | d79fe4364c34c3f99c101e1c27824203c78e6dea (diff) | |
parent | 722e027150cf787cb2eada154f5151fa77d5da18 (diff) | |
download | numpy-5e5ed9c4a50554dd71bcdac9227e3e57661e7705.tar.gz |
Merge pull request #23549 from F3eQnxN3RriK/doc-fix-accessor
DOC: Fix incorrect operators for member access in `array.rst`
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r-- | doc/source/reference/c-api/array.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst index ed6d6fb6b..9abaaddf5 100644 --- a/doc/source/reference/c-api/array.rst +++ b/doc/source/reference/c-api/array.rst @@ -3351,7 +3351,7 @@ Memory management .. c:function:: int PyArray_ResolveWritebackIfCopy(PyArrayObject* obj) - If ``obj.flags`` has :c:data:`NPY_ARRAY_WRITEBACKIFCOPY`, this function + If ``obj->flags`` has :c:data:`NPY_ARRAY_WRITEBACKIFCOPY`, this function clears the flags, `DECREF` s `obj->base` and makes it writeable, and sets ``obj->base`` to NULL. It then copies ``obj->data`` to `obj->base->data`, and returns the error state of @@ -3583,7 +3583,7 @@ Miscellaneous Macros .. c:function:: void PyArray_DiscardWritebackIfCopy(PyObject* obj) - If ``obj.flags`` has :c:data:`NPY_ARRAY_WRITEBACKIFCOPY`, this function + If ``obj->flags`` has :c:data:`NPY_ARRAY_WRITEBACKIFCOPY`, this function clears the flags, `DECREF` s `obj->base` and makes it writeable, and sets ``obj->base`` to NULL. In contrast to :c:func:`PyArray_DiscardWritebackIfCopy` it makes no attempt |