summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-04-08 07:07:11 -0600
committerGitHub <noreply@github.com>2020-04-08 07:07:11 -0600
commit76b711ad87d114f0f7926877adccf14dce04614c (patch)
treebdcef9ebe93a5e955f6554060b3d02c3b2a3c0e8 /numpy
parente78d0764d414952716ec75e3c44a74359643cffc (diff)
parent47a68963f44c4bbecfce0a2cd1f24a8449b8af45 (diff)
downloadnumpy-76b711ad87d114f0f7926877adccf14dce04614c.tar.gz
Merge pull request #15936 from feeeper/typo-in-value-error-in-random-choice
MAINT: Fix capitalization in error message in `mtrand.pyx`
Diffstat (limited to 'numpy')
-rw-r--r--numpy/random/mtrand.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx
index 6387814c8..b1faa1035 100644
--- a/numpy/random/mtrand.pyx
+++ b/numpy/random/mtrand.pyx
@@ -948,7 +948,7 @@ cdef class RandomState:
raise ValueError("Cannot take a larger sample than "
"population when 'replace=False'")
elif size < 0:
- raise ValueError("negative dimensions are not allowed")
+ raise ValueError("Negative dimensions are not allowed")
if p is not None:
if np.count_nonzero(p > 0) < size: