diff options
| author | LordMZTE <lord@mzte.de> | 2022-07-01 16:39:18 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-07-27 18:17:07 +0300 |
| commit | c6f5832bb61841d5be4f77adc38fbc4561bb5057 (patch) | |
| tree | ee6bafab009d21469f00ffb5185faef515fb061f /src/Module.zig | |
| parent | 8c4896fb3a44d3b8025f66db7615483c30bed2b1 (diff) | |
| download | zig-c6f5832bb61841d5be4f77adc38fbc4561bb5057.tar.gz zig-c6f5832bb61841d5be4f77adc38fbc4561bb5057.zip | |
Module: fix inverted condition
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index 688a7e5a30..da69dc9781 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -4697,7 +4697,7 @@ pub fn importFile( if (!mem.startsWith(u8, resolved_path, resolved_root_path) or // This prevents this check from triggering when the name of the // imported file starts with the root path's directory name. - std.fs.path.isSep(resolved_path[resolved_root_path.len])) + !std.fs.path.isSep(resolved_path[resolved_root_path.len])) { return error.ImportOutsidePkgPath; } |
