aboutsummaryrefslogtreecommitdiff
path: root/lib/std/meta.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2022-12-13 21:54:04 +0100
committerr00ster91 <r00ster91@proton.me>2022-12-17 14:11:33 +0100
commit7350ea3e2da4d4e6ef5092cd9f0832beef0291d5 (patch)
tree071595ca763a8fe5ed39751e9f4d1cb0079a028a /lib/std/meta.zig
parent20d3fd901eb6a7ddc1340107ae00e0f2014552e3 (diff)
downloadzig-7350ea3e2da4d4e6ef5092cd9f0832beef0291d5.tar.gz
zig-7350ea3e2da4d4e6ef5092cd9f0832beef0291d5.zip
std.builtin: rename Type.Fn's args to params
This was a poor naming choice; these are parameters, not arguments. Parameters specify what kind of arguments are expected, whereas the arguments are the actual values passed.
Diffstat (limited to 'lib/std/meta.zig')
-rw-r--r--lib/std/meta.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig
index d4b9c940df..c2e4267998 100644
--- a/lib/std/meta.zig
+++ b/lib/std/meta.zig
@@ -1084,8 +1084,8 @@ pub fn ArgsTuple(comptime Function: type) type {
if (function_info.is_var_args)
@compileError("Cannot create ArgsTuple for variadic function");
- var argument_field_list: [function_info.args.len]type = undefined;
- inline for (function_info.args) |arg, i| {
+ var argument_field_list: [function_info.params.len]type = undefined;
+ inline for (function_info.params) |arg, i| {
const T = arg.type.?;
argument_field_list[i] = T;
}