summaryrefslogtreecommitdiff
path: root/numpy/doc/dispatch.py
diff options
context:
space:
mode:
authorDan Allan <dallan@bnl.gov>2019-08-24 14:08:15 -0400
committerDan Allan <dallan@bnl.gov>2019-08-24 14:08:15 -0400
commit8ec4c73e9e9268e0c9e42ed000799f32b92745e8 (patch)
tree25fa1687772361b253c203242935cedeed139aa6 /numpy/doc/dispatch.py
parentf7f87596aee84daba42d90736af2eeb740eb14f7 (diff)
downloadnumpy-8ec4c73e9e9268e0c9e42ed000799f32b92745e8.tar.gz
DOC: Fix a minor typo in dispatch documentation.
Diffstat (limited to 'numpy/doc/dispatch.py')
-rw-r--r--numpy/doc/dispatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/doc/dispatch.py b/numpy/doc/dispatch.py
index 8db607131..c9029941b 100644
--- a/numpy/doc/dispatch.py
+++ b/numpy/doc/dispatch.py
@@ -223,7 +223,7 @@ calls ``numpy.sum(self)``, and the same for ``mean``.
... return arr._i * arr._N
...
>>> @implements(np.mean)
-... def sum(arr):
+... def mean(arr):
... "Implementation of np.mean for DiagonalArray objects"
... return arr._i / arr._N
...