Skip to content

Commit 9b527a5

Browse files
authored
Fixed typos in comments (#25071)
1 parent bb93b39 commit 9b527a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/closureiters.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
# `i` should exception be raised in state `i`. For all states in `try` block
6464
# the target state is `except` block. For all states in `except` block
6565
# the target state is `finally` block. For all other states there is no
66-
# target state (0, as the first block can never be neither except nor finally).
66+
# target state (0, as the first state can never be except nor finally).
6767
# - env var :curExcLevel is created, finallies use it to decide their exit logic
6868
# - if there are finallies, env var :finallyPath is created. It contains exit state labels
69-
# for every finally level, and is changed in runtime in try, except, break, and continue
69+
# for every finally level, and is changed in runtime in try, except, break, and return
7070
# nodes to control finally exit behavior.
7171
# - the iter body is wrapped into a
7272
# var :tmp: Exception
@@ -133,7 +133,7 @@
133133
# of 3:
134134
# somethingElse()
135135
# :state = -1 # Exit
136-
# break :staleLoop
136+
# break :stateLoop
137137
# else:
138138
# return
139139

@@ -172,7 +172,7 @@ type
172172
stateLoopLabel: PSym # Label to break on, when jumping between states.
173173
tempVarId: int # unique name counter
174174
hasExceptions: bool # Does closure have yield in try?
175-
curExcLandingState: PNode # Negative for except, positive for finally
175+
curExcLandingState: PNode
176176
curFinallyLevel: int
177177
idgen: IdGenerator
178178
varStates: Table[ItemId, int] # Used to detect if local variable belongs to multiple states

0 commit comments

Comments
 (0)