diff options
| author | r00ster91 <r00ster91@proton.me> | 2022-12-13 21:36:08 +0100 |
|---|---|---|
| committer | r00ster91 <r00ster91@proton.me> | 2022-12-17 14:11:33 +0100 |
| commit | 20d3fd901eb6a7ddc1340107ae00e0f2014552e3 (patch) | |
| tree | ed161bf6a59c4eb4304f5a422e36de7fbd131042 /doc/langref.html.in | |
| parent | 90477e5c10c9c263a3c0038e1ae7b814d2c5397e (diff) | |
| download | zig-20d3fd901eb6a7ddc1340107ae00e0f2014552e3.tar.gz zig-20d3fd901eb6a7ddc1340107ae00e0f2014552e3.zip | |
std.builtin: rename Type.Fn.Param's arg_type to type
It's the type of a parameter, not an argument, but the prefix is redundant either way.
Diffstat (limited to 'doc/langref.html.in')
| -rw-r--r-- | doc/langref.html.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 2e235aa80f..751e1f1a1f 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].arg_type.? == bool); + try testing.expect(@typeInfo(@TypeOf(testing.expect)).Fn.args[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); |
