summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer <joewinzer@googlemail.com>2021-02-10 18:47:12 +0100
committerJoseph-Eugene Winzer <joewinzer@googlemail.com>2021-02-10 18:47:12 +0100
commitf1632554da7193cf28f04a3cbb52e3d0396330d3 (patch)
treea9bd98b67d78d6138f5b14cae36a47dd04e235e3
parente382b01976b02f3feab20ee54518a2551d2bfb92 (diff)
Added string specifier in Ex 06
std.fmt.format does not take strings without a string specifier since zig 0.8.0.
-rw-r--r--exercises/06_strings.zig2
1 files changed, 1 insertions, 1 deletions
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