summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorJulian Taylor <juliantaylor108@gmail.com>2017-03-30 16:01:04 +0200
committerGitHub <noreply@github.com>2017-03-30 16:01:04 +0200
commitee6780faf1308f2e0e8cb056f5a4ad5c89aaf191 (patch)
tree45def31c11a8cdc87b5845d7867247b785331b12 /numpy/core/fromnumeric.py
parent77c875f66d2da61da7cecf40ecc8409a02bfc124 (diff)
parent58c604c1aa765d37f0d0324efb1852ddf4d9d9ef (diff)
downloadnumpy-ee6780faf1308f2e0e8cb056f5a4ad5c89aaf191.tar.gz
Merge pull request #8871 from eric-wieser/fix-bad-pr-merge
DOC: Replace line that was errantly removed in #8850
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 973ba7b3a..4309277ad 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -1514,7 +1514,8 @@ def nonzero(a):
array([[1, 0, 0],
[0, 2, 0],
[1, 1, 0]])
- >>> (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
+ >>> np.nonzero(x)
+ (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
>>> x[np.nonzero(x)]
array([ 1., 1., 1.])