mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-11-03 21:49:42 -09:00
Zig 0.16: trimLeft -> trimStart
This commit is contained in:
parent
cb0aa4f03c
commit
608befe26c
1 changed files with 1 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ fn tryReadArgsFile(path: [:0]const u8) void {
|
|||
if (std.mem.indexOfAny(u8, line, " \t=")) |i| {
|
||||
arglist[argc] = allocator.dupeZ(u8, line[0..i]) catch unreachable;
|
||||
argc += 1;
|
||||
line = std.mem.trimLeft(u8, line[i+1..], &std.ascii.whitespace);
|
||||
line = std.mem.trimStart(u8, line[i+1..], &std.ascii.whitespace);
|
||||
}
|
||||
arglist[argc] = allocator.dupeZ(u8, line) catch unreachable;
|
||||
argc += 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue