mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
Update for new fmt.zig formatting
This commit is contained in:
parent
92b68c57b3
commit
0dd2e93e4c
@ -1023,7 +1023,7 @@ pub const Value = union(enum) {
|
|||||||
debug.warn("{}", inner);
|
debug.warn("{}", inner);
|
||||||
},
|
},
|
||||||
Value.Float => |inner| {
|
Value.Float => |inner| {
|
||||||
debug.warn("{.5}", inner);
|
debug.warn("{:.5}", inner);
|
||||||
},
|
},
|
||||||
Value.String => |inner| {
|
Value.String => |inner| {
|
||||||
debug.warn("\"{}\"", inner);
|
debug.warn("\"{}\"", inner);
|
||||||
@ -1078,7 +1078,7 @@ pub const Value = union(enum) {
|
|||||||
debug.warn("{}", inner);
|
debug.warn("{}", inner);
|
||||||
},
|
},
|
||||||
Value.Float => |inner| {
|
Value.Float => |inner| {
|
||||||
debug.warn("{.5}", inner);
|
debug.warn("{:.5}", inner);
|
||||||
},
|
},
|
||||||
Value.String => |inner| {
|
Value.String => |inner| {
|
||||||
debug.warn("\"{}\"", inner);
|
debug.warn("\"{}\"", inner);
|
||||||
|
|||||||
@ -25,7 +25,7 @@ pub fn main() !void {
|
|||||||
|
|
||||||
var stdout_file = try std.io.getStdOut();
|
var stdout_file = try std.io.getStdOut();
|
||||||
const stdout = &stdout_file.outStream().stream;
|
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 {
|
fn testOnce() usize {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user