improved report design

This commit is contained in:
Chris Boesch
2026-04-03 19:28:12 +02:00
parent 7fae6e0607
commit f6a6798c8b
3 changed files with 4 additions and 4 deletions

View File

@@ -1121,7 +1121,7 @@ const exercises = [_]Exercise{
.{
.main_file = "084_interfaces.zig",
.output =
\\Daily Insect Report:
\\=== Doctor Zoraptera's Insect Report ===
\\Ant is alive.
\\Bee visited 17 flowers.
\\Grasshopper hopped 32 meters.

View File

@@ -102,7 +102,7 @@ pub fn main() !void {
Insect{ .grasshopper = Grasshopper{ .distance_hopped = 32 } },
};
std.debug.print("Daily Insect Report:\n", .{});
std.debug.print("=== Doctor Zoraptera's Insect Report ===\n", .{});
for (my_insects) |insect| {
// Almost done! We want to print() each insect with a
// single method call here.

View File

@@ -1,5 +1,5 @@
--- exercises/084_interfaces.zig 2025-08-15 15:17:57.839348063 +0200
+++ answers/084_interfaces.zig 2026-04-03 14:27:32.670756488 +0200
--- exercises/084_interfaces.zig 2026-04-03 19:24:51.764327692 +0200
+++ answers/084_interfaces.zig 2026-04-03 19:27:31.552579474 +0200
@@ -106,7 +106,7 @@
for (my_insects) |insect| {
// Almost done! We want to print() each insect with a