Skip to content

Commit

Permalink
Update generator.wat
Browse files Browse the repository at this point in the history
  • Loading branch information
dhil authored Aug 15, 2024
1 parent 5d7c4c3 commit 2d6ba31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/generator.wat
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
(loop $loop
(block $on_yield (result i32 (ref $ct))
;; Resume continuation $c
(resume $ct (tag $yield $on_yield) (local.get $c))
(resume $ct (on $yield $on_yield) (local.get $c))
;; Generator returned: no more data
(return)
)
Expand Down

0 comments on commit 2d6ba31

Please sign in to comment.