change suspend; to suspend {}

This commit is contained in:
jacob gw
2021-05-24 15:55:03 -04:00
parent 7ef800c1bf
commit 433202d429
4 changed files with 6 additions and 6 deletions

View File

@@ -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", .{});
}