From 433202d429b781d7b9dcada16c47c29314b9a08d Mon Sep 17 00:00:00 2001 From: jacob gw Date: Mon, 24 May 2021 15:55:03 -0400 Subject: change `suspend;` to `suspend {}` --- exercises/084_async.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exercises/084_async.zig') diff --git a/exercises/084_async.zig b/exercises/084_async.zig index fe68b03..6a67907 100644 --- a/exercises/084_async.zig +++ b/exercises/084_async.zig @@ -21,7 +21,7 @@ // functions. // // fn fooThatSuspends() void { -// suspend; // return control, but leave the frame alone +// suspend {} // return control, but leave the frame alone // } // // 4. To call any function in async context and get a reference @@ -51,6 +51,6 @@ pub fn main() void { fn foo() void { print("foo() A\n", .{}); - suspend; + suspend {} print("foo() B\n", .{}); } -- cgit v1.2.3-70-g09d2