From 2ad8de54150137244dc1d1b93bb3a75e850ee2b9 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 9 May 2021 13:15:53 -0400 Subject: Normalize interrobangs --- exercises/014_while4.zig | 2 +- exercises/028_defer2.zig | 2 +- patches/patches/028_defer2.patch | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/014_while4.zig b/exercises/014_while4.zig index 7b2714e..95aecb0 100644 --- a/exercises/014_while4.zig +++ b/exercises/014_while4.zig @@ -15,7 +15,7 @@ const std = @import("std"); pub fn main() void { var n: u32 = 1; - // Oh dear! This while loop will go forever!? + // Oh dear! This while loop will go forever?! // Please fix this so the print statement below gives the desired output. while (true) : (n += 1) { if (???) ???; diff --git a/exercises/028_defer2.zig b/exercises/028_defer2.zig index 6943012..35c1326 100644 --- a/exercises/028_defer2.zig +++ b/exercises/028_defer2.zig @@ -18,7 +18,7 @@ pub fn main() void { fn printAnimal(animal: u8) void { std.debug.print("(", .{}); - std.debug.print(") ", .{}); // <---- how!? + std.debug.print(") ", .{}); // <---- how?! if (animal == 'g') { std.debug.print("Goat", .{}); diff --git a/patches/patches/028_defer2.patch b/patches/patches/028_defer2.patch index c042c45..14caf8b 100644 --- a/patches/patches/028_defer2.patch +++ b/patches/patches/028_defer2.patch @@ -1,4 +1,4 @@ 21c21 -< std.debug.print(") ", .{}); // <---- how!? +< std.debug.print(") ", .{}); // <---- how?! --- -> defer std.debug.print(") ", .{}); // <---- how!? +> defer std.debug.print(") ", .{}); // <---- how?! -- cgit v1.2.3-ZIG