summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_elementwise_functions.py
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2021-07-21 15:47:33 -0600
committerAaron Meurer <asmeurer@gmail.com>2021-07-21 15:47:33 -0600
commit9d5d0ec2264c86a19714cf185a5a183df14cbb94 (patch)
tree0c673f0e1879894189034458981a8c4859821206 /numpy/_array_api/_elementwise_functions.py
parent4fd028ddf76d37e869bbde024cc1dc1456c7fb6f (diff)
downloadnumpy-9d5d0ec2264c86a19714cf185a5a183df14cbb94.tar.gz
Fix a typo in an error message
Diffstat (limited to 'numpy/_array_api/_elementwise_functions.py')
-rw-r--r--numpy/_array_api/_elementwise_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_array_api/_elementwise_functions.py b/numpy/_array_api/_elementwise_functions.py
index ade2aab0c..c07c32de7 100644
--- a/numpy/_array_api/_elementwise_functions.py
+++ b/numpy/_array_api/_elementwise_functions.py
@@ -113,7 +113,7 @@ def bitwise_and(x1: Array, x2: Array, /) -> Array:
See its docstring for more information.
"""
if x1.dtype not in _integer_or_boolean_dtypes or x2.dtype not in _integer_or_boolean_dtypes:
- raise TypeError('Only integer_or_boolean dtypes are allowed in bitwise_and')
+ raise TypeError('Only integer or boolean dtypes are allowed in bitwise_and')
x1, x2 = Array._normalize_two_args(x1, x2)
return Array._new(np.bitwise_and(x1._array, x2._array))