diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-05-25 11:50:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 11:50:12 -0400 |
commit | 84db3edcc553e48df34d87ca2785a58075fb2fe0 (patch) | |
tree | 65be352408996b76871b0a747dd0d115c7a8baac /exercises/084_async.zig | |
parent | 1bf1f682fffc74d96b9516414e7c944e9fe09608 (diff) | |
parent | 8bc15eecc41411e944b75e15c08f17eeddb1c50c (diff) | |
download | ziglings-84db3edcc553e48df34d87ca2785a58075fb2fe0.tar.gz ziglings-84db3edcc553e48df34d87ca2785a58075fb2fe0.tar.bz2 ziglings-84db3edcc553e48df34d87ca2785a58075fb2fe0.tar.xz ziglings-84db3edcc553e48df34d87ca2785a58075fb2fe0.zip |
Merge pull request #56 from g-w1/sus
change `suspend;` to `suspend {}`
Diffstat (limited to 'exercises/084_async.zig')
-rw-r--r-- | exercises/084_async.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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", .{}); } |