use splitScalar specifically
All checks were successful
Generic zig build / build (push) Successful in 5m32s

This commit is contained in:
Emil Lerch 2024-07-01 16:04:59 -07:00
parent 3178fa6684
commit 542ae15889
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -77,7 +77,7 @@ pub fn main() !void {
try usage(args);
}
const read_data = stdin_data[0..read];
var it = std.mem.split(u8, read_data, "\n");
var it = std.mem.splitScalar(u8, read_data, '\n');
while (it.next()) |line| {
if (line.len == 0) continue;
stdin_lines[line_inx] = try alloc.dupeZ(u8, line);