From 47a68963f44c4bbecfce0a2cd1f24a8449b8af45 Mon Sep 17 00:00:00 2001 From: Andrei Shirobokov Date: Wed, 8 Apr 2020 13:18:47 +0400 Subject: Typo in the `mtrand.pyx` was fixed `ValueError` about negative dimension was lowercased. --- numpy/random/mtrand.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy') 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: -- cgit v1.2.1