diff options
author | 2021-04-20 13:47:15 -0700 | |
---|---|---|
committer | 2021-04-20 13:47:15 -0700 | |
commit | ba1c784316a062124b56f4643af200c0508a1006 (patch) | |
tree | 374672e2226d4b277c8daee7df85efdc1f11370c /src/fs.zig | |
parent | 7bc04fb5de8a197e985c83f5668451481ddc309a (diff) | |
download | bun-ba1c784316a062124b56f4643af200c0508a1006.tar.gz bun-ba1c784316a062124b56f4643af200c0508a1006.tar.zst bun-ba1c784316a062124b56f4643af200c0508a1006.zip |
at least it builds
Diffstat (limited to 'src/fs.zig')
-rw-r--r-- | src/fs.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs.zig b/src/fs.zig index afcceeb38..a74d3478d 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -40,7 +40,7 @@ pub const PathName = struct { pub fn nonUniqueNameString(self: *PathName, allocator: *std.mem.Allocator) !string { if (strings.eql("index", self.base)) { if (self.dir.len > 0) { - return MutableString.ensureValidIdentifier(PathName.init(self.dir), allocator); + return MutableString.ensureValidIdentifier(PathName.init(self.dir).dir, allocator); } } @@ -84,13 +84,13 @@ pub const PathName = struct { }; pub const Path = struct { - pretty_path: string, + pretty: string, text: string, namespace: string, name: PathName, pub fn init(text: string) Path { - return Path{ .pretty_path = text, .text = text, .namespace = "file", .name = PathName.init(text) }; + return Path{ .pretty = text, .text = text, .namespace = "file", .name = PathName.init(text) }; } pub fn isBefore(a: *Path, b: Path) bool { |