diff options
author | Andy Scholand <ajschol@users.noreply.github.com> | 2019-01-15 13:26:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-15 13:26:52 -0700 |
commit | 38e5bad90699b88e54e9d067250a83f466e20d5d (patch) | |
tree | 806f621ee5cb00b93f1ec92e0016578b344d468a /numpy/lib | |
parent | 49689f7be478fe9a4d33761b080eb6aef3f8f899 (diff) | |
download | numpy-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.py | 2 |
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. |