diff --git a/std/os/index.zig b/std/os/index.zig index 0feb829da..1eb422b57 100644 --- a/std/os/index.zig +++ b/std/os/index.zig @@ -504,7 +504,7 @@ pub fn getEnvVarOwned(allocator: &mem.Allocator, key: []const u8) -> %[]u8 { } } else { const result = getEnvPosix(key) ?? return error.EnvironmentVariableNotFound; - return mem.dupe(u8, allocator, result); + return mem.dupe(allocator, u8, result); } }