From e7c15600e2c5e2b66a0e26f8511145c588166271 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 17 Feb 2017 13:53:36 -0800 Subject: DOC: Fix typo in fill_diagonal docstring. --- numpy/lib/index_tricks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/index_tricks.py') diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index f573cd4c6..7f9419e9b 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -658,8 +658,8 @@ s_ = IndexExpression(maketuple=False) def fill_diagonal(a, val, wrap=False): """Fill the main diagonal of the given array of any dimensionality. - For an array `a` with ``a.ndim > 2``, the diagonal is the list of - locations with indices ``a[i, i, ..., i]`` all identical. This function + For an array `a` with ``a.ndim >= 2``, the diagonal is the list of + locations with indices ``a[i, ..., i]`` all identical. This function modifies the input array in-place, it does not return a value. Parameters -- cgit v1.2.1