From 8bc15eecc41411e944b75e15c08f17eeddb1c50c 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/085_async2.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exercises/085_async2.zig') 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", .{}); } -- cgit v1.2.3-ZIG