use splitScalar specifically
All checks were successful
Generic zig build / build (push) Successful in 5m32s
All checks were successful
Generic zig build / build (push) Successful in 5m32s
This commit is contained in:
parent
3178fa6684
commit
542ae15889
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user