summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2023-04-07 13:12:03 +0300
committerGitHub <noreply@github.com>2023-04-07 13:12:03 +0300
commit5e5ed9c4a50554dd71bcdac9227e3e57661e7705 (patch)
tree6173eb7ac12982a8d9eb5cd5c87474c4966d47ed /doc/source/reference/c-api
parentd79fe4364c34c3f99c101e1c27824203c78e6dea (diff)
parent722e027150cf787cb2eada154f5151fa77d5da18 (diff)
downloadnumpy-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.rst4
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