aboutsummaryrefslogtreecommitdiff
path: root/exercises/07_strings2.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-10 22:13:22 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-10 22:13:22 -0500
commitbb5c219daec42be742e81f726ebdcfae4219e084 (patch)
tree549692ef98bff9eefacd7a6ade3487a5cab8f81c /exercises/07_strings2.zig
parentd50aa3577b30b67691e0ec60c3219821b88de641 (diff)
downloadziglings-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/07_strings2.zig')
-rw-r--r--exercises/07_strings2.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/07_strings2.zig b/exercises/07_strings2.zig
index bb81bc7..f0bbf99 100644
--- a/exercises/07_strings2.zig
+++ b/exercises/07_strings2.zig
@@ -20,5 +20,5 @@ pub fn main() void {
And the Spiders from Mars
;
- std.debug.print("{}\n",.{lyrics});
+ std.debug.print("{s}\n",.{lyrics});
}