| author | |
| committer | |
| log | 5daf2123318a7b6eb499d96383bc2c804270c19d |
| tree | f960baf8fd16e4683ca61f30be48e45e5a4a59de |
| parent | 7a3c5144855c3dd5d6bdb3025357d576dfb589c4 |
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 { |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | pub 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); | |
| 114 | 110 | } |
| 115 | 111 | |
| 116 | 112 | pub fn print_all(w: std.fs.File.Writer, items: anytype, ln: bool) !void { |