aboutsummaryrefslogtreecommitdiff
path: root/exercises/48_methods2.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/48_methods2.zig')
-rw-r--r--exercises/48_methods2.zig6
1 files changed, 3 insertions, 3 deletions
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 });
}
};