Skip to content

Commit

Permalink
Merge pull request numpy#24702 from F3eQnxN3RriK/doc-patch-2
Browse files Browse the repository at this point in the history
DOC: Fix typos
  • Loading branch information
mattip authored Sep 14, 2023
2 parents 0df1365 + 10f0af5 commit e536952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/reference/c-api/array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ Converting data types
The returned array must be freed by the caller of this routine
(using :c:func:`PyDataMem_FREE` ) and all the array objects in it
``DECREF`` 'd or a memory-leak will occur. The example template-code
below shows a typically usage:
below shows a typical usage:
.. versionchanged:: 1.18.0
A mix of scalars and zero-dimensional arrays now produces a type
Expand Down Expand Up @@ -1249,7 +1249,7 @@ Special functions for NPY_OBJECT
strides, ordering, etc.) Sets the :c:data:`NPY_ARRAY_WRITEBACKIFCOPY` flag
and ``arr->base``, and set ``base`` to READONLY. Call
:c:func:`PyArray_ResolveWritebackIfCopy` before calling
:c:func:`Py_DECREF` in order copy any changes back to ``base`` and
:c:func:`Py_DECREF` in order to copy any changes back to ``base`` and
reset the READONLY flag.
Returns 0 for success, -1 for failure.
Expand Down

0 comments on commit e536952

Please sign in to comment.