diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-04-08 07:07:11 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 07:07:11 -0600 |
commit | 76b711ad87d114f0f7926877adccf14dce04614c (patch) | |
tree | bdcef9ebe93a5e955f6554060b3d02c3b2a3c0e8 | |
parent | e78d0764d414952716ec75e3c44a74359643cffc (diff) | |
parent | 47a68963f44c4bbecfce0a2cd1f24a8449b8af45 (diff) | |
download | numpy-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`
-rw-r--r-- | numpy/random/mtrand.pyx | 2 |
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: |