summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-10-29 15:37:43 -0600
committerGitHub <noreply@github.com>2021-10-29 15:37:43 -0600
commitc7d5624c4e89b92e4530aa2f92f662fbe551929d (patch)
tree4de263b3207b3dbf7d5bb006d631cd1e42adae52
parent9b0b40b22288575fb7ff37f7670170fd2d81193b (diff)
parent87c6199494abc01c863422a7965a1033f0a53138 (diff)
downloadnumpy-c7d5624c4e89b92e4530aa2f92f662fbe551929d.tar.gz
Merge pull request #20235 from Michael-T-McCann/example-typo
DOC: fix typo in example, put the return statement inside the with context
-rw-r--r--numpy/core/_add_newdocs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py
index dbbb43009..c8a24db0c 100644
--- a/numpy/core/_add_newdocs.py
+++ b/numpy/core/_add_newdocs.py
@@ -328,7 +328,7 @@ add_newdoc('numpy.core', 'nditer',
... with it:
... for (a, b, c) in it:
... addop(a, b, out=c)
- ... return it.operands[2]
+ ... return it.operands[2]
Here is the same function, but following the C-style pattern: