Function fmtMessage [src]
Prototype
pub fn fmtMessage(self: Note, status: *const Status) std.fmt.Formatter(Note.formatMessage)
Parameters
self: Note
status: *const Status
Source
pub fn fmtMessage(self: Note, status: *const Status) std.fmt.Formatter(Note.formatMessage) {
return .{ .data = switch (self) {
.zoir => |note| note.msg.get(status.zoir.?),
.type_check => |note| note.msg,
} };
}