Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
As title
  • Loading branch information
esc committed May 29, 2024
1 parent a45d46d commit 524c482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numba_rvsdg/core/datastructures/ast_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def function(a: int) -> None:
i = None ## assign target, i
while True: # loop until we break
__iter_last_1__ = i ## backup value of i
i = next(__iterator_1__, '__sentinel__') # * get next i
i = next(__iterator_1__, '__sentinel__') ## get next i
if i != '__sentinel__': ## regular iteration
c += i # add to accumulator
if i == a: # check for early exit
Expand All @@ -539,7 +539,7 @@ def function(a: int) -> None:
the loop.
* ``__iter_last_1__ = i ## backup value of i``
* ``i = next(__iterator_1__, '__sentinel__') # * get next i``
* ``i = next(__iterator_1__, '__sentinel__') ## get next i``
* ``if i != '__sentinel__': ## regular iteration``
And lastly, one assignment in the for-else clause
Expand Down

0 comments on commit 524c482

Please sign in to comment.