From bb5c219daec42be742e81f726ebdcfae4219e084 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 10 Feb 2021 22:13:22 -0500 Subject: Added string specifier in format strings (#3) This is now required in current versions of Zig. --- exercises/08_quiz.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/08_quiz.zig') 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}); } -- cgit v1.2.3-ZIG