summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjnothman <jnothman@student.usyd.edu.au>2014-03-04 14:47:05 +1100
committerjnothman <jnothman@student.usyd.edu.au>2014-03-04 14:47:05 +1100
commitb1d5501ee1c8181dcb1b5808dbed4c32e57ec5e4 (patch)
tree0c3445d5b27b218a6a7fd1edb9690c03a4ea7cf9 /doc
parentde6ec889f48c224bddece8ed77faf83ec7e83c2b (diff)
downloadnumpy-b1d5501ee1c8181dcb1b5808dbed4c32e57ec5e4.tar.gz
DOC fix incorrect variable name in example
Undefined `dataaddr` -> `dataptrarray`
Diffstat (limited to 'doc')
-rw-r--r--doc/source/reference/c-api.iterator.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/reference/c-api.iterator.rst b/doc/source/reference/c-api.iterator.rst
index b26845434..569d8ec56 100644
--- a/doc/source/reference/c-api.iterator.rst
+++ b/doc/source/reference/c-api.iterator.rst
@@ -229,7 +229,7 @@ is used to control the memory layout of the allocated result, typically
npy_intp i;
do {
npy_intp size = *innersizeptr;
- char *src = dataaddr[0], *dst = dataaddr[1];
+ char *src = dataptrarray[0], *dst = dataptrarray[1];
for(i = 0; i < size; i++, src += innerstride, dst += itemsize) {
memcpy(dst, src, itemsize);
}