From 7350ea3e2da4d4e6ef5092cd9f0832beef0291d5 Mon Sep 17 00:00:00 2001 From: r00ster91 Date: Tue, 13 Dec 2022 21:54:04 +0100 Subject: 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. --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/langref.html.in') diff --git a/doc/langref.html.in b/doc/langref.html.in index 751e1f1a1f..f93505fbfe 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -5242,7 +5242,7 @@ const math = std.math; const testing = std.testing; test "fn reflection" { - try testing.expect(@typeInfo(@TypeOf(testing.expect)).Fn.args[0].type.? == bool); + try testing.expect(@typeInfo(@TypeOf(testing.expect)).Fn.params[0].type.? == bool); try testing.expect(@typeInfo(@TypeOf(testing.tmpDir)).Fn.return_type.? == testing.TmpDir); try testing.expect(@typeInfo(@TypeOf(math.Log2Int)).Fn.is_generic); -- cgit v1.2.3