Skip to content
Closed
Prev Previous commit
Revert "if(err)"
This reverts commit 2c14604.
  • Loading branch information
iritkatriel committed Jun 2, 2023
commit a6d58abb6bb94214ffabad1af4729550fdaece60
2 changes: 1 addition & 1 deletion Doc/c-api/iter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ something like this::

Py_DECREF(iterator);

if (err) {
if (err < 0) {
/* propagate error */
}
else {
Expand Down