summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorzuko3d <zuko3d@gmail.com>2018-05-18 19:54:01 +0300
committerEric Wieser <wieser.eric@gmail.com>2018-05-18 09:54:01 -0700
commit6aa659951a63d7c491f1a06aea0605ea30ec699f (patch)
tree327a1186099899d0397a8508ea8fb8b87998d57d /numpy/core/numeric.py
parentd520546e0f8364da7074ccbbb2cb52454af97b4d (diff)
downloadnumpy-6aa659951a63d7c491f1a06aea0605ea30ec699f.tar.gz
BUG: Fix typo in variable name (#11116)
Typo fix in variable name in core/numeric/binary_repr/warn_if_insufficient. This only worked before because it used binwidth from the outer namespace.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index cd783d242..7ade3d224 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -2035,7 +2035,7 @@ def binary_repr(num, width=None):
'11101'
"""
- def warn_if_insufficient(width, binwdith):
+ def warn_if_insufficient(width, binwidth):
if width is not None and width < binwidth:
warnings.warn(
"Insufficient bit width provided. This behavior "