refactor: rename a function
This commit is contained in:
1 parent
f4a8c962e6
commit
3214725e58
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -65,7 +65,7 @@ test "parse ffffff" {
|
|||||||
try std.testing.expect((result.r == 255) and (result.g == 255) and (result.b == 255));
|
try std.testing.expect((result.r == 255) and (result.g == 255) and (result.b == 255));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn printAscii(allocator: std.mem.Allocator, ascii_art_path: ?[]u8, sys_info_list: std.array_list.Managed([]u8)) !void {
|
pub fn printAsciiAndModules(allocator: std.mem.Allocator, ascii_art_path: ?[]u8, sys_info_list: std.array_list.Managed([]u8)) !void {
|
||||||
var stdout_buffer: [2048]u8 = undefined;
|
var stdout_buffer: [2048]u8 = undefined;
|
||||||
var stdout_writer = std.fs.File.stdout().writer(&stdout_buffer);
|
var stdout_writer = std.fs.File.stdout().writer(&stdout_buffer);
|
||||||
const stdout = &stdout_writer.interface;
|
const stdout = &stdout_writer.interface;
|
||||||
|
|||||||
+1
-1
@@ -70,5 +70,5 @@ pub fn main() !void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try ascii.printAscii(allocator, config.getAsciiPath(conf), modules_list);
|
try ascii.printAsciiAndModules(allocator, config.getAsciiPath(conf), modules_list);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user