diff options
author | yuki <drsuaimqjgar@gmail.com> | 2023-03-29 03:20:02 +0000 |
---|---|---|
committer | yuki <drsuaimqjgar@gmail.com> | 2023-04-07 03:16:18 +0000 |
commit | 722e027150cf787cb2eada154f5151fa77d5da18 (patch) | |
tree | 6173eb7ac12982a8d9eb5cd5c87474c4966d47ed /doc/source/reference | |
parent | d79fe4364c34c3f99c101e1c27824203c78e6dea (diff) | |
download | numpy-722e027150cf787cb2eada154f5151fa77d5da18.tar.gz |
DOC: Fix incorrect operators for member access in `array.rst`
Operators should be `->`, not `.`, for here both `obj` are pointers of C-struct.
Diffstat (limited to 'doc/source/reference')
-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 |