aboutsummaryrefslogtreecommitdiff
path: root/exercises/085_async2.zig
diff options
context:
space:
mode:
authorDave Gauer <ratfactor@gmail.com>2021-05-25 11:50:12 -0400
committerGitHub <noreply@github.com>2021-05-25 11:50:12 -0400
commit84db3edcc553e48df34d87ca2785a58075fb2fe0 (patch)
tree65be352408996b76871b0a747dd0d115c7a8baac /exercises/085_async2.zig
parent1bf1f682fffc74d96b9516414e7c944e9fe09608 (diff)
parent8bc15eecc41411e944b75e15c08f17eeddb1c50c (diff)
downloadziglings-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/085_async2.zig')
-rw-r--r--exercises/085_async2.zig4
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", .{});
}