From 043ecb16243b3ebff70a35f9cdea329c858f477e Mon Sep 17 00:00:00 2001 From: Joseph-Eugene Winzer Date: Wed, 10 Feb 2021 18:47:12 +0100 Subject: [PATCH] Added string specifier in Ex 06 std.fmt.format does not take strings without a string specifier since zig 0.8.0. --- exercises/06_strings.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/06_strings.zig b/exercises/06_strings.zig index 2430884..d469166 100644 --- a/exercises/06_strings.zig +++ b/exercises/06_strings.zig @@ -33,7 +33,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} {}{}\n",.{d, laugh, major_tom}); + std.debug.print("d={u} {s}{s}\n",.{d, laugh, major_tom}); // // Keen eyes will notice that we've put a 'u' inside the '{}' // placeholder in the format string above. This tells the