summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2020-12-27 23:40:46 +0100
committerRalf Gommers <ralf.gommers@gmail.com>2020-12-27 23:49:04 +0100
commitaed54ec40da57745fd114577b65b61df1bdb0220 (patch)
treef3d77a2c93b5dfe9d4d93f917c3916bdc9fa9059
parente81922e74097774d12736531e391b7b79bad3b50 (diff)
downloadnumpy-aed54ec40da57745fd114577b65b61df1bdb0220.tar.gz
DOC: fix invalid C code in NEP 10
-rw-r--r--doc/neps/nep-0010-new-iterator-ufunc.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/neps/nep-0010-new-iterator-ufunc.rst b/doc/neps/nep-0010-new-iterator-ufunc.rst
index 358018c46..4e7fdfdf5 100644
--- a/doc/neps/nep-0010-new-iterator-ufunc.rst
+++ b/doc/neps/nep-0010-new-iterator-ufunc.rst
@@ -575,12 +575,16 @@ ndim, and niter will produce slightly different layouts.
intp shape;
/* The current coordinate along this axis */
intp coord;
- /* The operand and index strides for this axis
+ /* The operand and index strides for this axis */
intp stride[niter];
- {intp indexstride;} #if (flags&FLAGS_HASINDEX);
+ #if (flags&FLAGS_HASINDEX)
+ intp indexstride;
+ #endif
/* The operand pointers and index values for this axis */
char* ptr[niter];
- {intp index;} #if (flags&FLAGS_HASINDEX);
+ #if (flags&FLAGS_HASINDEX)
+ intp index;
+ #endif
}[ndim];
};