summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorAndy Scholand <ajschol@users.noreply.github.com>2019-01-15 13:26:52 -0700
committerGitHub <noreply@github.com>2019-01-15 13:26:52 -0700
commit38e5bad90699b88e54e9d067250a83f466e20d5d (patch)
tree806f621ee5cb00b93f1ec92e0016578b344d468a /numpy/lib
parent49689f7be478fe9a4d33761b080eb6aef3f8f899 (diff)
downloadnumpy-38e5bad90699b88e54e9d067250a83f466e20d5d.tar.gz
DOC: Update docstring of diff() to use 'i' not 'n'
See issue https://github.com/numpy/numpy/issues/12742
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index fa1f42252..b61a64b8e 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1150,7 +1150,7 @@ def diff(a, n=1, axis=-1, prepend=np._NoValue, append=np._NoValue):
"""
Calculate the n-th discrete difference along the given axis.
- The first difference is given by ``out[n] = a[n+1] - a[n]`` along
+ The first difference is given by ``out[i] = a[i+1] - a[i]`` along
the given axis, higher differences are calculated by using `diff`
recursively.