diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-02-10 22:13:22 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-02-10 22:13:22 -0500 |
commit | bb5c219daec42be742e81f726ebdcfae4219e084 (patch) | |
tree | 549692ef98bff9eefacd7a6ade3487a5cab8f81c /exercises/08_quiz.zig | |
parent | d50aa3577b30b67691e0ec60c3219821b88de641 (diff) | |
download | ziglings-bb5c219daec42be742e81f726ebdcfae4219e084.tar.gz ziglings-bb5c219daec42be742e81f726ebdcfae4219e084.tar.bz2 ziglings-bb5c219daec42be742e81f726ebdcfae4219e084.tar.xz ziglings-bb5c219daec42be742e81f726ebdcfae4219e084.zip |
Added string specifier in format strings (#3)
This is now required in current versions of Zig.
Diffstat (limited to 'exercises/08_quiz.zig')
-rw-r--r-- | exercises/08_quiz.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/08_quiz.zig b/exercises/08_quiz.zig index e23f856..eda66b8 100644 --- a/exercises/08_quiz.zig +++ b/exercises/08_quiz.zig @@ -30,5 +30,5 @@ pub fn main() void { lang[2] = letters[???]; // We want to "Program in Zig!" of course: - std.debug.print("Program in {}!\n", .{lang}); + std.debug.print("Program in {s}!\n", .{lang}); } |