diff options
author | jtgoen <5403345+jtgoen@users.noreply.github.com> | 2022-07-28 18:12:50 -0600 |
---|---|---|
committer | jtgoen <5403345+jtgoen@users.noreply.github.com> | 2022-07-28 18:12:50 -0600 |
commit | c222d695e9417ca5e5a14beac8f07613a14d4686 (patch) | |
tree | 81c6eb2df98ecd8a49793d9244d87bd0d75595e7 | |
parent | 1a89e4ebf13756541916cf5ed47866a3dd7e74df (diff) | |
download | ziglings-c222d695e9417ca5e5a14beac8f07613a14d4686.tar.gz ziglings-c222d695e9417ca5e5a14beac8f07613a14d4686.tar.bz2 ziglings-c222d695e9417ca5e5a14beac8f07613a14d4686.tar.xz ziglings-c222d695e9417ca5e5a14beac8f07613a14d4686.zip |
Fix issue with formatting from std library updates
-rw-r--r-- | exercises/050_no_value.zig | 2 | ||||
-rw-r--r-- | exercises/082_anonymous_structs3.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/050_no_value.zig b/exercises/050_no_value.zig index 8708d2d..f8e89ca 100644 --- a/exercises/050_no_value.zig +++ b/exercises/050_no_value.zig @@ -71,7 +71,7 @@ pub fn main() void { var first_line2: Err!*const [21]u8 = ???; first_line2 = "which can eternal lie"; - std.debug.print("{s} {s} / ", .{ first_line1, first_line2 }); + std.debug.print("{s} {!s} / ", .{ first_line1, first_line2 }); printSecondLine(); } diff --git a/exercises/082_anonymous_structs3.zig b/exercises/082_anonymous_structs3.zig index 1214589..8344321 100644 --- a/exercises/082_anonymous_structs3.zig +++ b/exercises/082_anonymous_structs3.zig @@ -116,7 +116,7 @@ fn printTuple(tuple: anytype) void { // @field(foo, "x"); // returns the value at foo.x // // The first field should print as: "0"(bool):true - print("\"{s}\"({s}):{any} ", .{ + print("\"{s}\"({any}):{any} ", .{ field.???, field.???, ???, |