From f9a1956d8827e2eb1c2bab79083e3cec48095846 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 30 Jun 2021 19:55:47 -0400 Subject: [PATCH] no unusued vars --- exercises/084_async.zig | 2 ++ patches/patches/084_async.patch | 4 ++-- 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();