summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorluz.paz <luzpaz@users.noreply.github.com>2018-02-12 18:50:27 -0500
committerluz.paz <luzpaz@users.noreply.github.com>2018-02-12 18:50:27 -0500
commit4740f15df91a779ccf2e923367a792ddcee5816e (patch)
tree23e85169fc2ff519d190cbee3aaa52617fe007a9 /numpy/core/src
parent9db6f384962e8ed75540f22f2e039ed6af1a4cbe (diff)
downloadnumpy-4740f15df91a779ccf2e923367a792ddcee5816e.tar.gz
Misc. typos
Found via `codespell -q 3 -I ../numpy-whitelist.txt`
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarray/datetime.c2
-rw-r--r--numpy/core/src/multiarray/dragon4.c2
-rw-r--r--numpy/core/src/multiarray/iterators.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/datetime.c b/numpy/core/src/multiarray/datetime.c
index a7d991581..a4a028ad4 100644
--- a/numpy/core/src/multiarray/datetime.c
+++ b/numpy/core/src/multiarray/datetime.c
@@ -2152,7 +2152,7 @@ add_minutes_to_datetimestruct(npy_datetimestruct *dts, int minutes)
* to UTC time, otherwise it returns the struct with the local time.
*
* Returns -1 on error, 0 on success, and 1 (with no error set)
- * if obj doesn't have the neeeded date or datetime attributes.
+ * if obj doesn't have the needed date or datetime attributes.
*/
NPY_NO_EXPORT int
convert_pydatetime_to_datetimestruct(PyObject *obj, npy_datetimestruct *out,
diff --git a/numpy/core/src/multiarray/dragon4.c b/numpy/core/src/multiarray/dragon4.c
index 1cdf021d2..e256b0ad7 100644
--- a/numpy/core/src/multiarray/dragon4.c
+++ b/numpy/core/src/multiarray/dragon4.c
@@ -896,7 +896,7 @@ BigInt_ShiftLeft(BigInt *result, npy_uint32 shift)
if (shiftBits == 0) {
npy_uint32 i;
- /* copy blcoks from high to low */
+ /* copy blocks from high to low */
for (pInCur = result->blocks + result->length,
pOutCur = pInCur + shiftBlocks;
pInCur >= pInBlocks;
diff --git a/numpy/core/src/multiarray/iterators.c b/numpy/core/src/multiarray/iterators.c
index 9cd5f036c..723c565f0 100644
--- a/numpy/core/src/multiarray/iterators.c
+++ b/numpy/core/src/multiarray/iterators.c
@@ -1722,7 +1722,7 @@ static PyMethodDef arraymultiter_methods[] = {
{"reset",
(PyCFunction) arraymultiter_reset,
METH_VARARGS, NULL},
- {NULL, NULL, 0, NULL}, /* sentinal */
+ {NULL, NULL, 0, NULL}, /* sentinel */
};
NPY_NO_EXPORT PyTypeObject PyArrayMultiIter_Type = {