fix calls to mem.split
This commit is contained in:
parent
f5e5fb8370
commit
234b589d3c
|
@ -146,7 +146,7 @@ fn getPathXdg(allocator: *std.mem.Allocator, arena: *std.heap.ArenaAllocator, fo
|
|||
_ = user_dirs.readAll(&read) catch null orelse break :block;
|
||||
const start = folder_spec.env.name.len + "=\"$HOME".len;
|
||||
|
||||
var line_it = std.mem.split(&read, "\n");
|
||||
var line_it = std.mem.split(u8, &read, "\n");
|
||||
while (line_it.next()) |line| {
|
||||
if (std.mem.startsWith(u8, line, folder_spec.env.name)) {
|
||||
const end = line.len - 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user