aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-06-30 19:55:47 -0400
committerDave Gauer <dave@ratfactor.com>2021-06-30 19:55:47 -0400
commit88c550062d6da8869974e13e037e303bdaaff857 (patch)
tree8b6daba17662df86025ae1ad2579c12d26a649e7
parentcc5c413cfcad8efe8540a6d6a8afe9d80d86a273 (diff)
downloadziglings-88c550062d6da8869974e13e037e303bdaaff857.tar.gz
ziglings-88c550062d6da8869974e13e037e303bdaaff857.tar.bz2
ziglings-88c550062d6da8869974e13e037e303bdaaff857.tar.xz
ziglings-88c550062d6da8869974e13e037e303bdaaff857.zip
no unusued vars
-rw-r--r--exercises/084_async.zig2
-rw-r--r--patches/patches/084_async.patch4
2 files changed, 4 insertions, 2 deletions
diff --git a/exercises/084_async.zig b/exercises/084_async.zig
index 6a67907..abfcac8 100644
--- a/exercises/084_async.zig
+++ b/exercises/084_async.zig
@@ -46,6 +46,8 @@
const print = @import("std").debug.print;
pub fn main() void {
+ // Additional Hint: you can assign things to '_' when you
+ // don't intend to do anything with them.
foo();
}
diff --git a/patches/patches/084_async.patch b/patches/patches/084_async.patch
index 6164775..9eba9ac 100644
--- a/patches/patches/084_async.patch
+++ b/patches/patches/084_async.patch
@@ -1,4 +1,4 @@
-49c49
+51c51
< foo();
---
-> var foo_frame = async foo();
+> _ = async foo();