Browse Source

no unusued vars

Dave Gauer 4 years ago
parent
commit
f9a1956d88
2 changed files with 4 additions and 2 deletions
  1. 2 0
      exercises/084_async.zig
  2. 2 2
      patches/patches/084_async.patch

+ 2 - 0
exercises/084_async.zig

@@ -46,6 +46,8 @@
 const print = @import("std").debug.print;
 const print = @import("std").debug.print;
 
 
 pub fn main() void {
 pub fn main() void {
+    // Additional Hint: you can assign things to '_' when you
+    // don't intend to do anything with them.
     foo();
     foo();
 }
 }
 
 

+ 2 - 2
patches/patches/084_async.patch

@@ -1,4 +1,4 @@
-49c49
+51c51
 <     foo();
 <     foo();
 ---
 ---
->     var foo_frame = async foo();
+>     _ = async foo();