summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api.iterator.rst
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-03-03 21:00:28 -0700
committerCharles Harris <charlesr.harris@gmail.com>2014-03-03 21:00:28 -0700
commit3e00e0058fb28bf22018d0d641f4a51814f5c9bb (patch)
tree0c3445d5b27b218a6a7fd1edb9690c03a4ea7cf9 /doc/source/reference/c-api.iterator.rst
parentde6ec889f48c224bddece8ed77faf83ec7e83c2b (diff)
parentb1d5501ee1c8181dcb1b5808dbed4c32e57ec5e4 (diff)
downloadnumpy-3e00e0058fb28bf22018d0d641f4a51814f5c9bb.tar.gz
Merge pull request #4433 from jnothman/patch-4
DOC fix incorrect variable name in example
Diffstat (limited to 'doc/source/reference/c-api.iterator.rst')
-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);
}