summaryrefslogtreecommitdiff
path: root/src/cli/args.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2023-10-02 08:17:42 -0700
committerMitchell Hashimoto <mitchell.hashimoto@gmail.com>2023-10-02 08:18:35 -0700
commit2b281068374eab491c92fa9b6ddb2cdd706001cd (patch)
treebeb07c5c528714ac71ff15cbbc0fce0952720433 /src/cli/args.zig
parente6128f33278bec3552d035309079e62a36c30c13 (diff)
update zig
Diffstat (limited to 'src/cli/args.zig')
-rw-r--r--src/cli/args.zig2
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,