summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api.array.rst
diff options
context:
space:
mode:
authorJaime Fernandez <jaimefrio@google.com>2017-07-08 21:03:01 +0200
committerJaime Fernandez <jaimefrio@google.com>2017-07-08 21:03:01 +0200
commit7121a4e9a8710f4b002533acb8b005e2a9773428 (patch)
tree5655d9eb3fadb0d1027e9572ab82c27a785d1764 /doc/source/reference/c-api.array.rst
parent06c650121d413e08722778451ff20f0216a0dde4 (diff)
downloadnumpy-7121a4e9a8710f4b002533acb8b005e2a9773428.tar.gz
DOC: Fix reference, PyArray_DescrNew -> PyArray_NewFromDescr
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 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