summaryrefslogtreecommitdiff
path: root/clap/args.zig
diff options
context:
space:
mode:
Diffstat (limited to 'clap/args.zig')
-rw-r--r--clap/args.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/clap/args.zig b/clap/args.zig
index 0141d86..4d97017 100644
--- a/clap/args.zig
+++ b/clap/args.zig
@@ -53,7 +53,7 @@ pub const OsIterator = struct {
53 /// The executable path (this is the first argument passed to the program) 53 /// The executable path (this is the first argument passed to the program)
54 /// TODO: Is it the right choice for this to be null? Maybe `init` should 54 /// TODO: Is it the right choice for this to be null? Maybe `init` should
55 /// return an error when we have no exe. 55 /// return an error when we have no exe.
56 exe_arg: ?[]const u8, 56 exe_arg: ?[:0]const u8,
57 57
58 pub fn init(allocator: *mem.Allocator) Error!OsIterator { 58 pub fn init(allocator: *mem.Allocator) Error!OsIterator {
59 var res = OsIterator{ 59 var res = OsIterator{
@@ -69,7 +69,7 @@ pub const OsIterator = struct {
69 iter.arena.deinit(); 69 iter.arena.deinit();
70 } 70 }
71 71
72 pub fn next(iter: *OsIterator) Error!?[]const u8 { 72 pub fn next(iter: *OsIterator) Error!?[:0]const u8 {
73 if (builtin.os.tag == .windows) { 73 if (builtin.os.tag == .windows) {
74 return try iter.args.next(&iter.arena.allocator) orelse return null; 74 return try iter.args.next(&iter.arena.allocator) orelse return null;
75 } else { 75 } else {