diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2021-10-29 15:37:43 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-29 15:37:43 -0600 |
| commit | c7d5624c4e89b92e4530aa2f92f662fbe551929d (patch) | |
| tree | 4de263b3207b3dbf7d5bb006d631cd1e42adae52 | |
| parent | 9b0b40b22288575fb7ff37f7670170fd2d81193b (diff) | |
| parent | 87c6199494abc01c863422a7965a1033f0a53138 (diff) | |
| download | numpy-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.py | 2 |
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: |
