Skip to content

Commit c7d5624

Browse files
authored
Merge pull request numpy#20235 from Michael-T-McCann/example-typo
DOC: fix typo in example, put the return statement inside the with context
2 parents 9b0b40b + 87c6199 commit c7d5624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/_add_newdocs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
... with it:
329329
... for (a, b, c) in it:
330330
... addop(a, b, out=c)
331-
... return it.operands[2]
331+
... return it.operands[2]
332332
333333
Here is the same function, but following the C-style pattern:
334334

0 commit comments

Comments
 (0)