221V 4 дней назад
Родитель
Сommit
cae739f852
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      exercises/027_defer.zig

+ 6 - 5
exercises/027_defer.zig

@@ -17,9 +17,10 @@
 // useful in the next exercise.
 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 ", .{});
 }
+