221V 4 days ago
parent
commit
cae739f852
1 changed files with 6 additions and 5 deletions
  1. 6 5
      exercises/027_defer.zig

+ 6 - 5
exercises/027_defer.zig

@@ -17,9 +17,10 @@
 // useful in the next exercise.
 // useful in the next exercise.
 const std = @import("std");
 const std = @import("std");
 
 
-pub fn main() void {
-    // Without changing anything else, please add a 'defer' statement
-    // to this code so that our program prints "One Two\n":
-    std.debug.print("Two\n", .{});
-    std.debug.print("One ", .{});
+pub fn main() void{
+  // Without changing anything else, please add a 'defer' statement
+  // to this code so that our program prints "One Two\n":
+  defer std.debug.print("Two\n", .{});
+  std.debug.print("One ", .{});
 }
 }
+