std › SemanticVersion › formatformatFunction parametersParameters#self:Versionw:*std.io.WriterType definitions in this namespaceTypes#RangeFunctions in this namespaceFunctions#orderparseformatSourceImplementation#pub fn format(self: Version, w: *std.io.Writer) std.io.Writer.Error!void { try w.print("{d}.{d}.{d}", .{ self.major, self.minor, self.patch }); if (self.pre) |pre| try w.print("-{s}", .{pre}); if (self.build) |build| try w.print("+{s}", .{build}); }
pub fn format(self: Version, w: *std.io.Writer) std.io.Writer.Error!void { try w.print("{d}.{d}.{d}", .{ self.major, self.minor, self.patch }); if (self.pre) |pre| try w.print("-{s}", .{pre}); if (self.build) |build| try w.print("+{s}", .{build}); }