summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jimmi HC2019-05-28 11:31:30 +0200
committerGravatar Jimmi HC2019-05-28 11:31:30 +0200
commit9468c187bd7d5e85398dd6e5a21a69639ee7f056 (patch)
tree7c5c73ebc25e35ec22ffe89431ce4baa7207c8c5
parentMerge branch 'master' of github.com:Hejsil/zig-clap (diff)
downloadzig-clap-9468c187bd7d5e85398dd6e5a21a69639ee7f056.tar.gz
zig-clap-9468c187bd7d5e85398dd6e5a21a69639ee7f056.tar.xz
zig-clap-9468c187bd7d5e85398dd6e5a21a69639ee7f056.zip
updated to newest version of zig
-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