From 7121a4e9a8710f4b002533acb8b005e2a9773428 Mon Sep 17 00:00:00 2001 From: Jaime Fernandez Date: Sat, 8 Jul 2017 21:03:01 +0200 Subject: DOC: Fix reference, PyArray_DescrNew -> PyArray_NewFromDescr --- doc/source/reference/c-api.array.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/source/reference/c-api.array.rst') diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst index b00919fae..22f780864 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -257,7 +257,7 @@ From scratch PyTypeObject* subtype, int nd, npy_intp* dims, int type_num, \ npy_intp* strides, void* data, int itemsize, int flags, PyObject* obj) - This is similar to :c:func:`PyArray_DescrNew` (...) except you + This is similar to :c:func:`PyArray_NewFromDescr` (...) except you specify the data-type descriptor with *type_num* and *itemsize*, where *type_num* corresponds to a builtin (or user-defined) type. If the type always has the same number of bytes, then -- cgit v1.2.1