summaryrefslogtreecommitdiff
path: root/doc/source/reference/arrays.ndarray.rst
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2021-12-22 14:31:56 +0200
committerGitHub <noreply@github.com>2021-12-22 14:31:56 +0200
commit6d5bc233442c034d54e0c0b15fdd7ed27e36fcac (patch)
tree4d22c2129c0edf2e615e2afe3378761cb3a6cd87 /doc/source/reference/arrays.ndarray.rst
parent7acb0fd4123673dc38aa5634b47f93770e61cfab (diff)
parent7bc1d5100fc67abdcaf5400223386ea613d7a872 (diff)
downloadnumpy-6d5bc233442c034d54e0c0b15fdd7ed27e36fcac.tar.gz
Merge pull request #20288 from pdebuyl/doctest_for_pytest
DOC: make some doctests in user,reference pass pytest
Diffstat (limited to 'doc/source/reference/arrays.ndarray.rst')
-rw-r--r--doc/source/reference/arrays.ndarray.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/reference/arrays.ndarray.rst b/doc/source/reference/arrays.ndarray.rst
index 0f703b475..66ebb66fb 100644
--- a/doc/source/reference/arrays.ndarray.rst
+++ b/doc/source/reference/arrays.ndarray.rst
@@ -54,13 +54,13 @@ objects implementing the :class:`buffer` or :ref:`array
>>> y = x[:,1]
>>> y
- array([2, 5])
+ array([2, 5], dtype=int32)
>>> y[0] = 9 # this also changes the corresponding element in x
>>> y
- array([9, 5])
+ array([9, 5], dtype=int32)
>>> x
array([[1, 9, 3],
- [4, 5, 6]])
+ [4, 5, 6]], dtype=int32)
Constructing arrays