authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 16:55:11 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 16:55:11 -07:00
log5daf2123318a7b6eb499d96383bc2c804270c19d
treef960baf8fd16e4683ca61f30be48e45e5a4a59de
parent7a3c5144855c3dd5d6bdb3025357d576dfb589c4

use stdlib for `u.concat`


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

src/util/funcs.zig+1-5
......@@ -106,11 +106,7 @@ pub fn join(xs: [][]const u8, delim: []const u8) ![]const u8 {
106106}
107107
108108pub fn concat(items: [][]const u8) ![]const u8 {
109 var buf: []const u8 = "";
110 for (items) |x| {
111 buf = try std.fmt.allocPrint(gpa, "{s}{s}", .{ buf, x });
112 }
113 return buf;
109 return std.mem.join(gpa, "", items);
114110}
115111
116112pub fn print_all(w: std.fs.File.Writer, items: anytype, ln: bool) !void {