mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
update a bunch of panic message to be capitalized
This commit is contained in:
parent
d37dd442f5
commit
298f93d20c
6 changed files with 26 additions and 26 deletions
|
@ -234,7 +234,7 @@ pub fn exportDivCeil(comptime T: type, comptime name: []const u8) void {
|
|||
comptime var f = struct {
|
||||
fn func(a: T, b: T) callconv(.C) T {
|
||||
return math.divCeil(T, a, b) catch {
|
||||
roc_panic("integer division by 0!", 0);
|
||||
roc_panic("Integer division by 0!", 0);
|
||||
};
|
||||
}
|
||||
}.func;
|
||||
|
@ -381,7 +381,7 @@ pub fn exportAddOrPanic(comptime T: type, comptime name: []const u8) void {
|
|||
fn func(self: T, other: T) callconv(.C) T {
|
||||
const result = addWithOverflow(T, self, other);
|
||||
if (result.has_overflowed) {
|
||||
roc_panic("integer addition overflowed!", 0);
|
||||
roc_panic("Integer addition overflowed!", 0);
|
||||
} else {
|
||||
return result.value;
|
||||
}
|
||||
|
@ -438,7 +438,7 @@ pub fn exportSubOrPanic(comptime T: type, comptime name: []const u8) void {
|
|||
fn func(self: T, other: T) callconv(.C) T {
|
||||
const result = subWithOverflow(T, self, other);
|
||||
if (result.has_overflowed) {
|
||||
roc_panic("integer subtraction overflowed!", 0);
|
||||
roc_panic("Integer subtraction overflowed!", 0);
|
||||
} else {
|
||||
return result.value;
|
||||
}
|
||||
|
@ -622,7 +622,7 @@ pub fn exportMulOrPanic(comptime T: type, comptime W: type, comptime name: []con
|
|||
fn func(self: T, other: T) callconv(.C) T {
|
||||
const result = @call(.always_inline, mulWithOverflow, .{ T, W, self, other });
|
||||
if (result.has_overflowed) {
|
||||
roc_panic("integer multiplication overflowed!", 0);
|
||||
roc_panic("Integer multiplication overflowed!", 0);
|
||||
} else {
|
||||
return result.value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue