diff options
author | Vedant Misra <vedant.misra@gmail.com> | 2017-12-01 20:06:40 -0500 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-12-01 17:06:40 -0800 |
commit | 0d749ad8dd9468a44ef1e6ed67f22eab03646d53 (patch) | |
tree | 92265aae0286904addcd2816208ab65ceb267f36 /numpy/core/fromnumeric.py | |
parent | 058abc1e0e1f75921599050a98f3991b1230cb1b (diff) | |
download | numpy-0d749ad8dd9468a44ef1e6ed67f22eab03646d53.tar.gz |
DOC: Fix minor typos in numpy/core/fromnumeric.py (#10072)
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index a335a9f4a..a5b16b88b 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -201,11 +201,11 @@ def reshape(a, newshape, order='C'): Notes ----- It is not always possible to change the shape of an array without - copying the data. If you want an error to be raise if the data is copied, + copying the data. If you want an error to be raised when the data is copied, you should assign the new shape to the shape attribute of the array:: >>> a = np.zeros((10, 2)) - # A transpose make the array non-contiguous + # A transpose makes the array non-contiguous >>> b = a.T # Taking a view makes it possible to modify the shape without modifying # the initial object. |