mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-02 08:23:31 +02:00
Normalized exercise output, answers (#41)
1. All exercises should print a trailing \n 2. The build script should always show you _exactly_ what it's looking for when you get it wrong. Therefore, .output should be set to the exact expected output.
This commit is contained in:
@@ -73,7 +73,7 @@ fn printCharacter(c: *Character) void {
|
||||
.warrior => "Warrior",
|
||||
};
|
||||
|
||||
std.debug.print("{s} (G:{} H:{} XP:{})", .{
|
||||
std.debug.print("{s} (G:{} H:{} XP:{})\n", .{
|
||||
class_name,
|
||||
c.gold,
|
||||
c.health,
|
||||
|
||||
Reference in New Issue
Block a user