Merge pull request #116 from jtgoen/fix-format-specifiers

Fix issue with formatting from std library updates
pull/2/head
Dave Gauer 2 years ago committed by GitHub
commit fa3e44c325

@ -71,7 +71,7 @@ pub fn main() void {
var first_line2: Err!*const [21]u8 = ???; var first_line2: Err!*const [21]u8 = ???;
first_line2 = "which can eternal lie"; 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(); printSecondLine();
} }

@ -116,7 +116,7 @@ fn printTuple(tuple: anytype) void {
// @field(foo, "x"); // returns the value at foo.x // @field(foo, "x"); // returns the value at foo.x
// //
// The first field should print as: "0"(bool):true // The first field should print as: "0"(bool):true
print("\"{s}\"({s}):{any} ", .{ print("\"{s}\"({any}):{any} ", .{
field.???, field.???,
field.???, field.???,
???, ???,

Loading…
Cancel
Save