mirror of
https://github.com/MasterQ32/zig-args.git
synced 2024-09-16 20:24:03 +02:00
Fix deprecation error
Fixes: ``` zig-linux-x86_64-0.14.0-dev.61+04e08ea88/lib/std/mem.zig:2286:19: error: deprecated; use splitSequence, splitAny, or splitScalar ```
This commit is contained in:
parent
872272205d
commit
03af1b6c5b
1 changed files with 1 additions and 1 deletions
2
args.zig
2
args.zig
|
@ -1012,7 +1012,7 @@ pub fn printHelp(comptime Generic: type, name: []const u8, writer: anytype) !voi
|
|||
try writer.print(" ", .{});
|
||||
}
|
||||
if (@hasDecl(Generic, "wrap_len")) {
|
||||
var it = std.mem.split(u8, @field(Generic.meta.option_docs, field.name), " ");
|
||||
var it = std.mem.splitScalar(u8, @field(Generic.meta.option_docs, field.name), ' ');
|
||||
const threshold = Generic.wrap_len;
|
||||
var line_len: usize = 0;
|
||||
var newline = false;
|
||||
|
|
Loading…
Reference in a new issue