diff options
Diffstat (limited to 'exercises/085_async2.zig')
-rw-r--r-- | exercises/085_async2.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/085_async2.zig b/exercises/085_async2.zig index 0ca322e..cec5c2b 100644 --- a/exercises/085_async2.zig +++ b/exercises/085_async2.zig @@ -7,7 +7,7 @@ // async function invocation's frame and returns control to it. // // fn fooThatSuspends() void { -// suspend; +// suspend {} // } // // var foo_frame = async fooThatSuspends(); @@ -23,7 +23,7 @@ pub fn main() void { fn foo() void { print("Hello ", .{}); - suspend; + suspend {} print("async!\n", .{}); } |