summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-08-04 10:42:26 -0500
committerGitHub <noreply@github.com>2021-08-04 10:42:26 -0500
commit88613b87143e6debf12f662443ed38518ccb8a4d (patch)
tree516b3a977604a3d73147f4ca72ef72f9b987631c
parentae92aa979d1ccc8f87c2d51570bd48bd3cec639a (diff)
downloadnumpy-88613b87143e6debf12f662443ed38518ccb8a4d.tar.gz
DOC: Fix comments about DType structures
Co-authored-by: Matti Picus <matti.picus@gmail.com>
-rw-r--r--numpy/core/include/numpy/ndarraytypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/include/numpy/ndarraytypes.h b/numpy/core/include/numpy/ndarraytypes.h
index e2aef6033..84441e641 100644
--- a/numpy/core/include/numpy/ndarraytypes.h
+++ b/numpy/core/include/numpy/ndarraytypes.h
@@ -1907,14 +1907,14 @@ typedef void (PyDataMem_EventHookFunc)(void *inp, void *outp, size_t size,
/* The type object of the scalar instances (may be NULL?) */
PyTypeObject *scalar_type;
/*
- * Flags about the DType mainly to signel legacy, parametric, or
+ * DType flags to signal legacy, parametric, or
* abstract. But plenty of space for additional information/flags.
*/
npy_uint64 flags;
/*
- * Private storage for all slots and reserved fields to allow a stable
- * size. A stable ABI size makes creating a static DType less painful
+ * Use indirection in order to allow a fixed size for this struct.
+ * A stable ABI size makes creating a static DType less painful
* while also ensuring flexibility for all opaque API (with one
* indirection due the pointer lookup).
*/