diff options
Diffstat (limited to '')
| -rw-r--r-- | example/streaming-clap.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/example/streaming-clap.zig b/example/streaming-clap.zig index 71a2fca..d15e5b7 100644 --- a/example/streaming-clap.zig +++ b/example/streaming-clap.zig | |||
| @@ -4,9 +4,7 @@ const clap = @import("clap"); | |||
| 4 | const debug = std.debug; | 4 | const debug = std.debug; |
| 5 | 5 | ||
| 6 | pub fn main() !void { | 6 | pub fn main() !void { |
| 7 | var direct_allocator = std.heap.DirectAllocator.init(); | 7 | const allocator = std.heap.direct_allocator; |
| 8 | const allocator = &direct_allocator.allocator; | ||
| 9 | defer direct_allocator.deinit(); | ||
| 10 | 8 | ||
| 11 | // First we specify what parameters our program can take. | 9 | // First we specify what parameters our program can take. |
| 12 | const params = [_]clap.Param(u8){ | 10 | const params = [_]clap.Param(u8){ |