summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorYulv-git <yulvchi@qq.com>2022-05-14 21:12:40 +0800
committerYulv-git <yulvchi@qq.com>2022-05-14 21:12:40 +0800
commit7332a698c8194c6e680510da086678fe07d9cf9d (patch)
tree3f7db21397cc5f0e657d29e891b412fa297b7a0a /numpy/core
parentcfbbde8ae720ba4fc653aabe64f9acc3d4c48183 (diff)
downloadnumpy-7332a698c8194c6e680510da086678fe07d9cf9d.tar.gz
Fix some typos.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/common/npy_cpu_features.h4
-rw-r--r--numpy/core/tests/test_array_coercion.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/common/npy_cpu_features.h b/numpy/core/src/common/npy_cpu_features.h
index 3d5f2e75c..96c543e70 100644
--- a/numpy/core/src/common/npy_cpu_features.h
+++ b/numpy/core/src/common/npy_cpu_features.h
@@ -137,7 +137,7 @@ npy_cpu_features_dict(void);
* that supported by the compiler and platform according to the specified
* values to command argument '--cpu-baseline'.
*
- * This function is mainly used to implement umath's attrbute '__cpu_baseline__',
+ * This function is mainly used to implement umath's attribute '__cpu_baseline__',
* and the items are sorted from the lowest to highest interest.
*
* For example, according to the default build configuration and by assuming the compiler
@@ -159,7 +159,7 @@ npy_cpu_baseline_list(void);
* that supported by the compiler and platform according to the specified
* values to command argument '--cpu-dispatch'.
*
- * This function is mainly used to implement umath's attrbute '__cpu_dispatch__',
+ * This function is mainly used to implement umath's attribute '__cpu_dispatch__',
* and the items are sorted from the lowest to highest interest.
*
* For example, according to the default build configuration and by assuming the compiler
diff --git a/numpy/core/tests/test_array_coercion.py b/numpy/core/tests/test_array_coercion.py
index d349f9d02..e858cd8b6 100644
--- a/numpy/core/tests/test_array_coercion.py
+++ b/numpy/core/tests/test_array_coercion.py
@@ -135,7 +135,7 @@ def scalar_instances(times=True, extended_precision=True, user_dtype=True):
def is_parametric_dtype(dtype):
- """Returns True if the the dtype is a parametric legacy dtype (itemsize
+ """Returns True if the dtype is a parametric legacy dtype (itemsize
is 0, or a datetime without units)
"""
if dtype.itemsize == 0: