authorgravatar for meghan@unicycle.coMeghan Denny <meghan@unicycle.co> 2021-07-18 18:09:41 -07:00
committergravatar for meghan@unicycle.coMeghan Denny <meghan@unicycle.co> 2021-07-18 18:09:41 -07:00
log2fa6f6369bd73b454bc370d26815dcef0f419fcd
tree0e3bf01942e7eb0eb3978945d4386e550e7ed791
parent20012e1afbeb1e0479c82771165bedd640965aef

cmd/zpm/add- use trim_suffix instead of trimRight


1 files changed, 1 insertions(+), 1 deletions(-)

src/cmd/zpm/add.zig+1-1
......@@ -59,7 +59,7 @@ pub fn execute(args: [][]u8) !void {
5959
6060 const file_w = file.writer();
6161 try file_w.print("\n", .{});
62 try file_w.print(" - src: git {s}\n", .{std.mem.trimRight(u8, found.git, ".git")});
62 try file_w.print(" - src: git {s}\n", .{u.trim_suffix(found.git, ".git")});
6363 if (!has_zigdotmod) {
6464 try file_w.print(" name: {s}\n", .{found.name});
6565 try file_w.print(" main: {s}\n", .{found.root_file.?[1..]});