summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api/array.rst
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2023-04-07 14:33:27 +0300
committerGitHub <noreply@github.com>2023-04-07 14:33:27 +0300
commitb50748866ceb1931553431bd425a8cc6080afd97 (patch)
tree8a7695affa8ea3648a6eac50fb1afa7739d8898f /doc/source/reference/c-api/array.rst
parent5e5ed9c4a50554dd71bcdac9227e3e57661e7705 (diff)
parent5e57c084a519fd3731c6ac1056481ff2730cd738 (diff)
downloadnumpy-b50748866ceb1931553431bd425a8cc6080afd97.tar.gz
Merge pull request #23553 from F3eQnxN3RriK/doc-fix-discardwritebackifcopy
DOC: Fix description of `PyArray_DiscardWritebackIfCopy`
Diffstat (limited to 'doc/source/reference/c-api/array.rst')
-rw-r--r--doc/source/reference/c-api/array.rst2
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 9abaaddf5..79f5e32dc 100644
--- a/doc/source/reference/c-api/array.rst
+++ b/doc/source/reference/c-api/array.rst
@@ -3586,7 +3586,7 @@ Miscellaneous Macros
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
+ contrast to :c:func:`PyArray_ResolveWritebackIfCopy` it makes no attempt
to copy the data from `obj->base` This undoes
:c:func:`PyArray_SetWritebackIfCopyBase`. Usually this is called after an
error when you are finished with ``obj``, just before ``Py_DECREF(obj)``.