diff options
author | 2022-07-11 09:39:03 -0300 | |
---|---|---|
committer | 2022-07-11 05:39:03 -0700 | |
commit | 6e5665de4ee56fd5d86f0c568743951c8a65eee7 (patch) | |
tree | fdcee92edd639f53ed43e57fe61fb69510079b7c /src | |
parent | ea6d96f40961f2cce7972bffaaeedd9095c202c8 (diff) | |
download | bun-6e5665de4ee56fd5d86f0c568743951c8a65eee7.tar.gz bun-6e5665de4ee56fd5d86f0c568743951c8a65eee7.tar.zst bun-6e5665de4ee56fd5d86f0c568743951c8a65eee7.zip |
fix: environment typo (#568)
Diffstat (limited to 'src')
-rw-r--r-- | src/c.zig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ const std = @import("std"); -const Enviroment = @import("./env.zig"); +const Environment = @import("./env.zig"); const PlatformSpecific = switch (@import("builtin").target.os.tag) { .macos => @import("./darwin_c.zig"), @@ -135,11 +135,11 @@ pub fn moveFileZSlowWithHandle(in_handle: std.os.fd_t, to_dir: std.os.fd_t, dest std.os.unlinkatZ(to_dir, destination, 0) catch {}; const out_handle = try std.os.openatZ(to_dir, destination, std.os.O.WRONLY | std.os.O.CREAT | std.os.O.CLOEXEC, 022); defer std.os.close(out_handle); - if (comptime Enviroment.isLinux) { + if (comptime Environment.isLinux) { _ = std.os.system.fallocate(out_handle, 0, 0, @intCast(i64, stat_.size)); _ = try std.os.sendfile(out_handle, in_handle, 0, @intCast(usize, stat_.size), &[_]std.os.iovec_const{}, &[_]std.os.iovec_const{}, 0); } else { - if (comptime Enviroment.isMac) { + if (comptime Environment.isMac) { // if this fails, it doesn't matter // we only really care about read & write succeeding PlatformSpecific.preallocate_file( |