From 8af3372cf204861f8541f91e47543f1b33337c5b Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Mon, 4 May 2026 17:15:30 +0200 Subject: fixed removed array multiplication --- exercises/006_strings.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'exercises/006_strings.zig') 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 -- cgit v1.2.3