diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2023-10-02 08:17:42 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2023-10-02 08:18:35 -0700 |
| commit | 2b281068374eab491c92fa9b6ddb2cdd706001cd (patch) | |
| tree | beb07c5c528714ac71ff15cbbc0fce0952720433 /src/cli/args.zig | |
| parent | e6128f33278bec3552d035309079e62a36c30c13 (diff) | |
update zig
Diffstat (limited to 'src/cli/args.zig')
| -rw-r--r-- | src/cli/args.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/args.zig b/src/cli/args.zig index 9eb09b3cc..fcb4c039c 100644 --- a/src/cli/args.zig +++ b/src/cli/args.zig @@ -82,7 +82,7 @@ pub fn parse(comptime T: type, alloc: Allocator, dst: *T, iter: anytype) !void { // The error set is dependent on comptime T, so we always add // an extra error so we can have the "else" below. const ErrSet = @TypeOf(err) || error{Unknown}; - switch (@as(ErrSet, @errSetCast(err))) { + switch (@as(ErrSet, @errorCast(err))) { // OOM is not recoverable since we need to allocate to // track more error messages. error.OutOfMemory => return err, |
