diff options
| author | r00ster91 <r00ster91@proton.me> | 2022-12-13 21:54:04 +0100 |
|---|---|---|
| committer | r00ster91 <r00ster91@proton.me> | 2022-12-17 14:11:33 +0100 |
| commit | 7350ea3e2da4d4e6ef5092cd9f0832beef0291d5 (patch) | |
| tree | 071595ca763a8fe5ed39751e9f4d1cb0079a028a /lib/std/start.zig | |
| parent | 20d3fd901eb6a7ddc1340107ae00e0f2014552e3 (diff) | |
| download | zig-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 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index ac92af9c67..dcc0b7427a 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -634,7 +634,7 @@ pub fn callMain() u8 { } pub fn call_wWinMain() std.os.windows.INT { - const MAIN_HINSTANCE = @typeInfo(@TypeOf(root.wWinMain)).Fn.args[0].type.?; + const MAIN_HINSTANCE = @typeInfo(@TypeOf(root.wWinMain)).Fn.params[0].type.?; const hInstance = @ptrCast(MAIN_HINSTANCE, std.os.windows.kernel32.GetModuleHandleW(null).?); const lpCmdLine = std.os.windows.kernel32.GetCommandLineW(); |
