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:
Bob Farrell 2024-06-18 17:55:14 +01:00 committed by Felix Queißner
parent 872272205d
commit 03af1b6c5b

View file

@ -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;