authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-03-20 11:38:58 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-03-20 11:38:58 -07:00
logfaf9585bfe5980c24748ee8a3e6a22faaa50b437
tree6a68fc2bd63659f9668bbca3b7f038ab424f26ef
parent8d6fdb4983a616940c1d5137110292a7862f6a7e

update to zig master 0.11.0-dev.1681+0bb178bbb


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

src/lib.zig+2-2
...@@ -58,7 +58,7 @@ fn make_csi_sequence(comptime c: []const u8, comptime x: anytype) []const u8 {...@@ -58,7 +58,7 @@ fn make_csi_sequence(comptime c: []const u8, comptime x: anytype) []const u8 {
5858
59fn arr_i_to_s(x: anytype) [][]const u8 {59fn arr_i_to_s(x: anytype) [][]const u8 {
60 var res: [x.len][]const u8 = undefined;60 var res: [x.len][]const u8 = undefined;
61 for (x) |item, i| {61 for (x, 0..) |item, i| {
62 res[i] = std.fmt.comptimePrint("{}", .{item});62 res[i] = std.fmt.comptimePrint("{}", .{item});
63 }63 }
64 return &res;64 return &res;
...@@ -210,7 +210,7 @@ pub const color = struct {...@@ -210,7 +210,7 @@ pub const color = struct {
210210
211fn _join(comptime delim: []const u8, comptime xs: [][]const u8) []const u8 {211fn _join(comptime delim: []const u8, comptime xs: [][]const u8) []const u8 {
212 var buf: []const u8 = "";212 var buf: []const u8 = "";
213 for (xs) |x, i| {213 for (xs, 0..) |x, i| {
214 buf = buf ++ x;214 buf = buf ++ x;
215 if (i < xs.len - 1) buf = buf ++ delim;215 if (i < xs.len - 1) buf = buf ++ delim;
216 }216 }