diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-02-10 22:08:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 22:08:16 -0500 |
commit | d50aa3577b30b67691e0ec60c3219821b88de641 (patch) | |
tree | 12689112051ceffb97934fe0ffda6056325ab86c /exercises/06_strings.zig | |
parent | 7310242ef0d72936ecbfb19014ada896f1b57f2a (diff) | |
parent | 043ecb16243b3ebff70a35f9cdea329c858f477e (diff) | |
download | ziglings-d50aa3577b30b67691e0ec60c3219821b88de641.tar.gz ziglings-d50aa3577b30b67691e0ec60c3219821b88de641.tar.bz2 ziglings-d50aa3577b30b67691e0ec60c3219821b88de641.tar.xz ziglings-d50aa3577b30b67691e0ec60c3219821b88de641.zip |
Merge pull request #3 from Joefish/06_print_specifier
Added string specifier in Ex 06
Diffstat (limited to 'exercises/06_strings.zig')
-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 |