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 | 043ecb16243b3ebff70a35f9cdea329c858f477e (patch) | |
tree | a9bd98b67d78d6138f5b14cae36a47dd04e235e3 /exercises | |
parent | f1f56fd829af5b8818a598d2eeb88d8b28f8d338 (diff) | |
download | ziglings-043ecb16243b3ebff70a35f9cdea329c858f477e.tar.gz ziglings-043ecb16243b3ebff70a35f9cdea329c858f477e.tar.bz2 ziglings-043ecb16243b3ebff70a35f9cdea329c858f477e.tar.xz ziglings-043ecb16243b3ebff70a35f9cdea329c858f477e.zip |
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 |