summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNicolas Hug <contact@nicolas-hug.com>2021-01-26 18:14:55 +0000
committerGitHub <noreply@github.com>2021-01-26 10:14:55 -0800
commit8ef114b9c98ca5a04b67fb072ff4a0f5a06de894 (patch)
tree6a7436a138f54ac2b7ea627a3f4d0935970d00e2 /doc
parent11141c45c21c85eea0ff1bd4054e314163b448d6 (diff)
downloadnumpy-8ef114b9c98ca5a04b67fb072ff4a0f5a06de894.tar.gz
Fix example in array subclassing doc (#18235)
Diffstat (limited to 'doc')
-rw-r--r--doc/source/user/basics.dispatch.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/user/basics.dispatch.rst b/doc/source/user/basics.dispatch.rst
index c0e1cf9ba..147f86c98 100644
--- a/doc/source/user/basics.dispatch.rst
+++ b/doc/source/user/basics.dispatch.rst
@@ -56,7 +56,7 @@ array([[2., 0., 0., 0., 0.],
Notice that the return type is a standard ``numpy.ndarray``.
->>> type(arr)
+>>> type(np.multiply(arr, 2))
numpy.ndarray
How can we pass our custom array type through this function? Numpy allows a