Skip to content

Commit 055c95a

Browse files
der-teufel-programmingTechatrix
authored andcommitted
InvalidUtf8 -> InvalidWtf8
1 parent 2aa7f2e commit 055c95a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

known-folders.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ pub fn getPath(allocator: std.mem.Allocator, folder: KnownFolder) Error!?[]const
9797
if (env_path.subdir) |sub_dir| {
9898
const root_path = std.process.getEnvVarOwned(arena.allocator(), env_path.env_var) catch |err| switch (err) {
9999
error.EnvironmentVariableNotFound => return null,
100-
error.InvalidUtf8 => return null,
100+
error.InvalidWtf8 => return null,
101101
error.OutOfMemory => |e| return e,
102102
};
103103
return try std.fs.path.join(allocator, &[_][]const u8{ root_path, sub_dir });
104104
} else {
105105
return std.process.getEnvVarOwned(allocator, env_path.env_var) catch |err| switch (err) {
106106
error.EnvironmentVariableNotFound => return null,
107-
error.InvalidUtf8 => return null,
107+
error.InvalidWtf8 => return null,
108108
error.OutOfMemory => |e| return e,
109109
};
110110
}

0 commit comments

Comments
 (0)