diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-04-12 12:48:05 -0500 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-05-12 15:33:34 -0700 |
| commit | 6b79a8ee7a9db83fbd693cc6d9097aeb3ca4a8d6 (patch) | |
| tree | 32022ed1fd9116594192c6174904d760eab5741e /numpy | |
| parent | 97031c1b82c6d86cfad9c3ecded3971402e6e8c9 (diff) | |
| download | numpy-6b79a8ee7a9db83fbd693cc6d9097aeb3ca4a8d6.tar.gz | |
DOC: Fix mistakes found by Tyler
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/include/numpy/ndarraytypes.h | 2 | ||||
| -rw-r--r-- | numpy/core/src/multiarray/abstractdtypes.c | 2 | ||||
| -rw-r--r-- | numpy/core/src/multiarray/methods.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/include/numpy/ndarraytypes.h b/numpy/core/include/numpy/ndarraytypes.h index 9ff8c9831..14e3adfdb 100644 --- a/numpy/core/include/numpy/ndarraytypes.h +++ b/numpy/core/include/numpy/ndarraytypes.h @@ -862,7 +862,7 @@ typedef int (PyArray_FinalizeFunc)(PyArrayObject *, PyObject *); * python float, int, or complex. * An array using this flag must be a temporary array that can never * leave the C internals of NumPy. Even if it does, ENSUREARRAY is - * absolutely safe to abuse, since it alraedy is be a base class array :). + * absolutely safe to abuse, since it already is a base class array :). */ #define _NPY_ARRAY_WAS_PYSCALAR 0x0040 #endif /* NPY_INTERNAL_BUILD */ diff --git a/numpy/core/src/multiarray/abstractdtypes.c b/numpy/core/src/multiarray/abstractdtypes.c index 5fff1e6e4..587d91c49 100644 --- a/numpy/core/src/multiarray/abstractdtypes.c +++ b/numpy/core/src/multiarray/abstractdtypes.c @@ -143,7 +143,7 @@ initialize_and_map_pytypes_to_dtypes() /* * The following functions define the "common DType" for the abstract dtypes. * - * Note that the logic with resupt to the "higher" dtypes such as floats + * Note that the logic with respect to the "higher" dtypes such as floats * could likely be more logically defined for them, but since NumPy dtypes * largely "know" each other, that is not necessary. */ diff --git a/numpy/core/src/multiarray/methods.c b/numpy/core/src/multiarray/methods.c index 588648ca8..251e527a6 100644 --- a/numpy/core/src/multiarray/methods.c +++ b/numpy/core/src/multiarray/methods.c @@ -887,7 +887,7 @@ array_astype(PyArrayObject *self, if ((PyArray_NDIM(self) != PyArray_NDIM(ret)) && DEPRECATE_FUTUREWARNING( "casting an array to a subarray dtype " - "will not using broadcasting in the future, but cast each " + "will not use broadcasting in the future, but cast each " "element to the new dtype and then append the dtype's shape " "to the new array. You can opt-in to the new behaviour, by " "additional field to the cast: " |
