mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
improved report design
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user