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 {...@@ -59,7 +59,7 @@ pub fn execute(args: [][]u8) !void {
5959
60 const file_w = file.writer();60 const file_w = file.writer();
61 try file_w.print("\n", .{});61 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")});
63 if (!has_zigdotmod) {63 if (!has_zigdotmod) {
64 try file_w.print(" name: {s}\n", .{found.name});64 try file_w.print(" name: {s}\n", .{found.name});
65 try file_w.print(" main: {s}\n", .{found.root_file.?[1..]});65 try file_w.print(" main: {s}\n", .{found.root_file.?[1..]});