mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Use camelCase in main.zig
This commit is contained in:
parent
0583cc1a27
commit
aeacbed870
1 changed files with 6 additions and 6 deletions
|
@ -26,14 +26,14 @@ comptime {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export helpers - Must be run inside a comptime
|
// Export helpers - Must be run inside a comptime
|
||||||
fn exportBuiltinFn(comptime fn_target: anytype, comptime fn_name: []const u8) void {
|
fn exportBuiltinFn(comptime func: anytype, comptime funcName: []const u8) void {
|
||||||
@export(fn_target, .{ .name = "roc_builtins." ++ fn_name, .linkage = .Strong });
|
@export(func, .{ .name = "roc_builtins." ++ funcName, .linkage = .Strong });
|
||||||
}
|
}
|
||||||
fn exportNumFn(comptime fn_target: anytype, comptime fn_name: []const u8) void {
|
fn exportNumFn(comptime func: anytype, comptime funcName: []const u8) void {
|
||||||
exportBuiltinFn(fn_target, "num." ++ fn_name);
|
exportBuiltinFn(func, "num." ++ funcName);
|
||||||
}
|
}
|
||||||
fn exportStrFn(comptime fn_target: anytype, comptime fn_name: []const u8) void {
|
fn exportStrFn(comptime func: anytype, comptime funcName: []const u8) void {
|
||||||
exportBuiltinFn(fn_target, "str." ++ fn_name);
|
exportBuiltinFn(func, "str." ++ funcName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run all tests in imported modules
|
// Run all tests in imported modules
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue