diff options
| author | 2021-09-05 13:35:09 -0700 | |
|---|---|---|
| committer | 2021-09-06 08:30:00 +0200 | |
| commit | 27899f951e94a67bf68d6dfebbf4ab9cf182d896 (patch) | |
| tree | 3b62ec34cb685cbc27842b932260d2025c9811dc /clap.zig | |
| parent | Merge branch 'master' into zig-master (diff) | |
| download | zig-clap-27899f951e94a67bf68d6dfebbf4ab9cf182d896.tar.gz zig-clap-27899f951e94a67bf68d6dfebbf4ab9cf182d896.tar.xz zig-clap-27899f951e94a67bf68d6dfebbf4ab9cf182d896.zip | |
Update mem.split call for latest zig master
Diffstat (limited to '')
| -rw-r--r-- | clap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -409,7 +409,7 @@ pub fn helpFull( | |||
| 409 | try printParam(cs.writer(), Id, param, Error, context, valueText); | 409 | try printParam(cs.writer(), Id, param, Error, context, valueText); |
| 410 | try stream.writeByteNTimes(' ', max_spacing - @intCast(usize, cs.bytes_written)); | 410 | try stream.writeByteNTimes(' ', max_spacing - @intCast(usize, cs.bytes_written)); |
| 411 | const help_text = try helpText(context, param); | 411 | const help_text = try helpText(context, param); |
| 412 | var help_text_line_it = mem.split(help_text, "\n"); | 412 | var help_text_line_it = mem.split(u8, help_text, "\n"); |
| 413 | var indent_line = false; | 413 | var indent_line = false; |
| 414 | while (help_text_line_it.next()) |line| : (indent_line = true) { | 414 | while (help_text_line_it.next()) |line| : (indent_line = true) { |
| 415 | if (indent_line) { | 415 | if (indent_line) { |