Skip to content

Commit 41539f0

Browse files
committed
builtin.Type.Fn.args -> builtin.Type.Fn.params
1 parent f6665fa commit 41539f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub const Func = opaque {
128128
const cb_meta = @typeInfo(@TypeOf(callback));
129129
switch (cb_meta) {
130130
.Fn => {
131-
if (cb_meta.Fn.args.len > 0 or cb_meta.Fn.return_type.? != void) {
131+
if (cb_meta.Fn.params.len > 0 or cb_meta.Fn.return_type.? != void) {
132132
@compileError("only callbacks with no input args and no results are currently supported");
133133
}
134134
},

0 commit comments

Comments
 (0)