convert more {} to {d} and {s}

This commit is contained in:
Andrew Kelley
2021-01-02 19:03:14 -07:00
parent 5b981b1be7
commit 974c008a0e
23 changed files with 97 additions and 97 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ pub fn format(
out_stream: anytype,
) !void {
if (fmt.len != 0) @compileError("Unknown format string: '" ++ fmt ++ "'");
try std.fmt.format(out_stream, "{}.{}.{}", .{ self.major, self.minor, self.patch });
try std.fmt.format(out_stream, "{d}.{d}.{d}", .{ self.major, self.minor, self.patch });
if (self.pre) |pre| try std.fmt.format(out_stream, "-{s}", .{pre});
if (self.build) |build| try std.fmt.format(out_stream, "+{s}", .{build});
}