summaryrefslogtreecommitdiff
path: root/exercises/006_strings.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-05-04 17:30:31 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-05-04 17:30:31 +0200
commitdde51b3126b0f9cfbbf5d1ec49fd19ad37dd5a5f (patch)
treea333fe8d515ae8fad19a94e37bdc4649f6dd662c /exercises/006_strings.zig
parent1ba1e301a8a977f652157ca60a0522c95bc736aa (diff)
parent8af3372cf204861f8541f91e47543f1b33337c5b (diff)
Merge pull request 'fixed removed array multiplication' (#423) from array_mult into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/423
Diffstat (limited to 'exercises/006_strings.zig')
-rw-r--r--exercises/006_strings.zig6
1 files changed, 1 insertions, 5 deletions
diff --git a/exercises/006_strings.zig b/exercises/006_strings.zig
index 5a7172c..08977de 100644
--- a/exercises/006_strings.zig
+++ b/exercises/006_strings.zig
@@ -27,10 +27,6 @@ pub fn main() void {
const d: u8 = ziggy[???];
// (Problem 2)
- // Use the array repeat '**' operator to make "ha ha ha ".
- const laugh = "ha " ???;
-
- // (Problem 3)
// Use the array concatenation '++' operator to make "Major Tom".
// (You'll need to add a space as well!)
const major = "Major";
@@ -38,7 +34,7 @@ pub fn main() void {
const major_tom = major ??? tom;
// That's all the problems. Let's see our results:
- std.debug.print("d={u} {s}{s}\n", .{ d, laugh, major_tom });
+ std.debug.print("d={u} {s}\n", .{ d, major_tom });
// Keen eyes will notice that we've put 'u' and 's' inside the '{}'
// placeholders in the format string above. This tells the
// print() function to format the values as a UTF-8 character and