aboutsummaryrefslogtreecommitdiff
path: root/doc/langref.html.in
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 /doc/langref.html.in
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 'doc/langref.html.in')
-rw-r--r--doc/langref.html.in2
1 files changed, 1 insertions, 1 deletions
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);