summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/args.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/args.zig b/src/args.zig
index 8706ebc..a34c14c 100644
--- a/src/args.zig
+++ b/src/args.zig
@@ -4,7 +4,7 @@ const std = @import("std");
4const debug = std.debug; 4const debug = std.debug;
5const heap = std.heap; 5const heap = std.heap;
6const mem = std.mem; 6const mem = std.mem;
7const os = std.os; 7const process = std.process;
8 8
9/// An example of what methods should be implemented on an arg iterator. 9/// An example of what methods should be implemented on an arg iterator.
10pub const ExampleArgIterator = struct { 10pub const ExampleArgIterator = struct {
@@ -52,15 +52,15 @@ test "clap.args.SliceIterator" {
52/// An argument iterator which wraps the ArgIterator in ::std. 52/// An argument iterator which wraps the ArgIterator in ::std.
53/// On windows, this iterator allocates. 53/// On windows, this iterator allocates.
54pub const OsIterator = struct { 54pub const OsIterator = struct {
55 const Error = os.ArgIterator.NextError; 55 const Error = process.ArgIterator.NextError;
56 56
57 arena: heap.ArenaAllocator, 57 arena: heap.ArenaAllocator,
58 args: os.ArgIterator, 58 args: process.ArgIterator,
59 59
60 pub fn init(allocator: *mem.Allocator) OsIterator { 60 pub fn init(allocator: *mem.Allocator) OsIterator {
61 return OsIterator{ 61 return OsIterator{
62 .arena = heap.ArenaAllocator.init(allocator), 62 .arena = heap.ArenaAllocator.init(allocator),
63 .args = os.args(), 63 .args = process.args(),
64 }; 64 };
65 } 65 }
66 66