From 88c550062d6da8869974e13e037e303bdaaff857 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 30 Jun 2021 19:55:47 -0400 Subject: 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(); -- cgit v1.2.3-ZIG