summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-08-24 22:04:05 +0300
committerGitHub <noreply@github.com>2019-08-24 22:04:05 +0300
commit77b421d271ecb5cbdb6c118389a6141f7d1a1998 (patch)
treed468dfddea6d715d05fed5227babbec1897f2e54
parent989efb824b533765a572ada533a9ee50bf307123 (diff)
parent8ec4c73e9e9268e0c9e42ed000799f32b92745e8 (diff)
downloadnumpy-77b421d271ecb5cbdb6c118389a6141f7d1a1998.tar.gz
Merge pull request #14351 from danielballan/doc-typo
DOC: Fix a minor typo in dispatch documentation.
-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
...