Skip to content

Commit 84af635

Browse files
style(cli): consts to uppercase
1 parent b535f88 commit 84af635

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ pub fn help_documentation() void {
1414
pub fn main() !void {
1515
var mem_arena = STD.heap.ArenaAllocator.init(STD.heap.page_allocator);
1616
defer mem_arena.deinit();
17-
const mem_allocator = mem_arena.allocator();
17+
const MEM_ALLOCATOR = mem_arena.allocator();
1818

1919
if (STD.os.argv.len > 2) {
2020
STD.debug.print("Too many arguments\n", .{});
2121
help_documentation();
2222
}
2323

2424
if (STD.os.argv.len == 1) {
25-
try CLI.run(mem_allocator, .{});
25+
try CLI.run(MEM_ALLOCATOR, .{});
2626
return;
2727
}
2828

2929
const PROGRAM_ARGUMENT = STD.mem.span(STD.os.argv[1]);
3030

3131
if (STD.mem.eql(u8, PROGRAM_ARGUMENT, "-s") or STD.mem.eql(u8, PROGRAM_ARGUMENT, "--solutions")) {
32-
try CLI.run(mem_allocator, .{ .exercises_dir_path = ".patches/solutions" });
32+
try CLI.run(MEM_ALLOCATOR, .{ .exercises_dir_path = ".patches/solutions" });
3333
} else if (STD.mem.eql(u8, PROGRAM_ARGUMENT, "-p") or STD.mem.eql(u8, PROGRAM_ARGUMENT, "--patch")) {
34-
try PATCH_SYSTEM.run(mem_allocator);
34+
try PATCH_SYSTEM.run(MEM_ALLOCATOR);
3535
} else if (STD.mem.eql(u8, PROGRAM_ARGUMENT, "-h") or STD.mem.eql(u8, PROGRAM_ARGUMENT, "--help") or STD.mem.eql(u8, PROGRAM_ARGUMENT, "help")) {
3636
help_documentation();
3737
} else {

0 commit comments

Comments
 (0)