diff options
| author | 2020-04-11 14:11:08 +0200 | |
|---|---|---|
| committer | 2020-04-11 14:11:08 +0200 | |
| commit | d83747d4d57b339ce2cc42b785436126a8e8c4c6 (patch) | |
| tree | 3f41de0468c54af73010701313124302dc74b4be /example/simple.zig | |
| parent | Merge pull request #16 from joachimschmidt557/zig-master (diff) | |
| download | zig-clap-d83747d4d57b339ce2cc42b785436126a8e8c4c6.tar.gz zig-clap-d83747d4d57b339ce2cc42b785436126a8e8c4c6.tar.xz zig-clap-d83747d4d57b339ce2cc42b785436126a8e8c4c6.zip | |
update examples to latest zig
Diffstat (limited to 'example/simple.zig')
| -rw-r--r-- | example/simple.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/simple.zig b/example/simple.zig index 5ac204d..d546223 100644 --- a/example/simple.zig +++ b/example/simple.zig | |||
| @@ -14,7 +14,7 @@ pub fn main() !void { | |||
| 14 | }, | 14 | }, |
| 15 | }; | 15 | }; |
| 16 | 16 | ||
| 17 | var args = try clap.parse(clap.Help, ¶ms, std.heap.direct_allocator); | 17 | var args = try clap.parse(clap.Help, ¶ms, std.heap.page_allocator); |
| 18 | defer args.deinit(); | 18 | defer args.deinit(); |
| 19 | 19 | ||
| 20 | if (args.flag("--help")) | 20 | if (args.flag("--help")) |