diff options
author | Joseph-Eugene Winzer <joewinzer@googlemail.com> | 2021-02-10 18:47:12 +0100 |
---|---|---|
committer | Joseph-Eugene Winzer <joewinzer@googlemail.com> | 2021-02-10 18:47:12 +0100 |
commit | f1632554da7193cf28f04a3cbb52e3d0396330d3 (patch) | |
tree | a9bd98b67d78d6138f5b14cae36a47dd04e235e3 /exercises | |
parent | e382b01976b02f3feab20ee54518a2551d2bfb92 (diff) |
Added string specifier in Ex 06
std.fmt.format does not take strings without a string specifier since
zig 0.8.0.
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/06_strings.zig | 2 |
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 |