Use generalized iteration everywhere

Closes #55
This commit is contained in:
centauri 2025-09-02 03:12:19 +01:00
parent a469094328
commit 9ace23470f
4 changed files with 7 additions and 7 deletions

View file

@ -93,7 +93,7 @@ end
local function flush_cleanups<T>(node: Node<T>)
if node.cleanups then
for _, fn in next, node.cleanups do
for _, fn in node.cleanups do
local ok, err: string? = xpcall(fn, debug.traceback)
if not ok then error(`cleanup error: {err}`, 0) end
end