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.
This commit is contained in:
r00ster91
2022-12-13 21:54:04 +01:00
parent 20d3fd901e
commit 7350ea3e2d
14 changed files with 44 additions and 44 deletions

View File

@@ -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;
}