summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/user/quickstart.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/user/quickstart.rst b/doc/source/user/quickstart.rst
index 065f1d888..fbcc1c11a 100644
--- a/doc/source/user/quickstart.rst
+++ b/doc/source/user/quickstart.rst
@@ -1437,10 +1437,10 @@ To change the dimensions of an array, you can omit one of the sizes
which will then be deduced automatically::
>>> a = np.arange(30)
- >>> a = a.reshape((2, -1, 3)) # -1 means "whatever is needed"
- >>> a.shape
+ >>> b = a.reshape((2, -1, 3)) # -1 means "whatever is needed"
+ >>> b.shape
(2, 5, 3)
- >>> a
+ >>> b
array([[[ 0, 1, 2],
[ 3, 4, 5],
[ 6, 7, 8],