summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorAndrei Shirobokov <shirobokov.andrey@gmail.com>2020-04-08 13:18:47 +0400
committerAndrei Shirobokov <shirobokov.andrey@gmail.com>2020-04-08 13:18:47 +0400
commit47a68963f44c4bbecfce0a2cd1f24a8449b8af45 (patch)
treebdcef9ebe93a5e955f6554060b3d02c3b2a3c0e8 /numpy/random
parente78d0764d414952716ec75e3c44a74359643cffc (diff)
downloadnumpy-47a68963f44c4bbecfce0a2cd1f24a8449b8af45.tar.gz
Typo in the `mtrand.pyx` was fixed
`ValueError` about negative dimension was lowercased.
Diffstat (limited to 'numpy/random')
-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: