summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api.array.rst
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-01-02 20:32:46 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2019-01-02 20:32:46 +0100
commit60fb75db5fc02c5ebd493002d5951b96e1abbd03 (patch)
tree796f495a5215579e86a224dafb50f9de64e5c633 /doc/source/reference/c-api.array.rst
parenta16fc9499eaa7cc9d7532f8a51725c6ed647cd1b (diff)
downloadnumpy-60fb75db5fc02c5ebd493002d5951b96e1abbd03.tar.gz
DOC: SimpleNewFromDescr cannot be given NULL for descr
Diffstat (limited to 'doc/source/reference/c-api.array.rst')
-rw-r--r--doc/source/reference/c-api.array.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst
index 76aa680ae..205483f14 100644
--- a/doc/source/reference/c-api.array.rst
+++ b/doc/source/reference/c-api.array.rst
@@ -307,10 +307,10 @@ From scratch
.. c:function:: PyObject* PyArray_SimpleNewFromDescr( \
int nd, npy_intp* dims, PyArray_Descr* descr)
- This function steals a reference to *descr* if it is not NULL.
+ This function steals a reference to *descr*.
- Create a new array with the provided data-type descriptor, *descr*
- , of the shape determined by *nd* and *dims*.
+ Create a new array with the provided data-type descriptor, *descr*,
+ of the shape determined by *nd* and *dims*.
.. c:function:: PyArray_FILLWBYTE(PyObject* obj, int val)