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:
@@ -5,7 +5,7 @@ const Foo = @Type(.{
|
||||
.is_generic = true,
|
||||
.is_var_args = false,
|
||||
.return_type = u0,
|
||||
.args = &.{},
|
||||
.params = &.{},
|
||||
},
|
||||
});
|
||||
comptime { _ = Foo; }
|
||||
|
||||
@@ -5,7 +5,7 @@ const Foo = @Type(.{
|
||||
.is_generic = false,
|
||||
.is_var_args = true,
|
||||
.return_type = u0,
|
||||
.args = &.{},
|
||||
.params = &.{},
|
||||
},
|
||||
});
|
||||
comptime { _ = Foo; }
|
||||
|
||||
@@ -5,7 +5,7 @@ const Foo = @Type(.{
|
||||
.is_generic = false,
|
||||
.is_var_args = false,
|
||||
.return_type = null,
|
||||
.args = &.{},
|
||||
.params = &.{},
|
||||
},
|
||||
});
|
||||
comptime { _ = Foo; }
|
||||
|
||||
Reference in New Issue
Block a user