Update for new fmt.zig formatting

This commit is contained in:
Marc Tiehuis 2019-06-30 22:25:03 +12:00
parent 92b68c57b3
commit 0dd2e93e4c
2 changed files with 3 additions and 3 deletions

View File

@ -1023,7 +1023,7 @@ pub const Value = union(enum) {
debug.warn("{}", inner);
},
Value.Float => |inner| {
debug.warn("{.5}", inner);
debug.warn("{:.5}", inner);
},
Value.String => |inner| {
debug.warn("\"{}\"", inner);
@ -1078,7 +1078,7 @@ pub const Value = union(enum) {
debug.warn("{}", inner);
},
Value.Float => |inner| {
debug.warn("{.5}", inner);
debug.warn("{:.5}", inner);
},
Value.String => |inner| {
debug.warn("\"{}\"", inner);

View File

@ -25,7 +25,7 @@ pub fn main() !void {
var stdout_file = try std.io.getStdOut();
const stdout = &stdout_file.outStream().stream;
try stdout.print("{.3} MiB/s, {} KiB used \n", mb_per_sec, memory_used / 1024);
try stdout.print("{:.3} MiB/s, {} KiB used \n", mb_per_sec, memory_used / 1024);
}
fn testOnce() usize {