aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-05-06 20:14:30 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-05-06 20:14:30 +0200
commita5485bb8a26816944bd8ab88173b5fbebc7b89d1 (patch)
tree537eabfff1710f73f3e8c5120762fc09263a3f06
parent1c73ad29a7c76ffd937911906d5367e4a78fb161 (diff)
Improve instructions.
-rw-r--r--build.zig9
1 files changed, 5 insertions, 4 deletions
diff --git a/build.zig b/build.zig
index a880450..b85a3d6 100644
--- a/build.zig
+++ b/build.zig
@@ -523,14 +523,15 @@ const ZiglingStep = struct {
const path = self.exercise.main_file;
const key = self.exercise.key();
- print("\n{s}Edit exercises/{s} and run this again.{s}", .{
+ print("\n{s}Edit exercises/{s} and run 'zig build' again.{s}\n", .{
red_text, path, reset_text,
});
const format =
\\
- \\{s}To continue from this zigling, use this command:{s}
- \\ {s}zig build -Dn={s}{s}
+ \\{s}To compile only this exercise, you can also use this command:{s}
+ \\{s}zig build -Dn={s}{s}
+ \\
\\
;
print(format, .{ red_text, reset_text, bold_text, key, reset_text });
@@ -665,7 +666,7 @@ const exercises = [_]Exercise{
.{
.main_file = "001_hello.zig",
.output = "Hello world!",
- .hint = "DON'T PANIC!\nRead the error above.\nSee how it has something to do with 'main'?\nOpen up the source file as noted and read the comments.\nYou can do this!",
+ .hint = "DON'T PANIC!\nRead the error above.\nSee how it has something to do with 'main'?\nOpen up the source file as noted and read the comments.\nYou can do this!\n",
},
.{
.main_file = "002_std.zig",