From 2d205d9645b6c7947e3016fca98dfaf533d3f5e2 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 28 Feb 2021 13:51:33 -0500 Subject: Added quiz 6 (and the trumpeting sounds grow louder) --- exercises/48_methods2.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exercises/48_methods2.zig') diff --git a/exercises/48_methods2.zig b/exercises/48_methods2.zig index b9477da..37b182c 100644 --- a/exercises/48_methods2.zig +++ b/exercises/48_methods2.zig @@ -23,9 +23,9 @@ const Elephant = struct { } pub fn print(self: *Elephant) void { - // Prints elephant letter and (V)isited or (U)nvisited. - var v: u8 = if (self.visited) 'V' else 'U'; - std.debug.print("Elephant {u} ({u}). ", .{ self.letter, v}); + // Prints elephant letter and [v]isited + var v: u8 = if (self.visited) 'v' else ' '; + std.debug.print("{u}{u} ", .{ self.letter, v }); } }; -- cgit v1.2.3-ZIG