Skip to content

Commit 9585956

Browse files
niicojsmatthewtolman
authored andcommitted
Update writer.zig for latest master
1 parent 2d0ccd9 commit 9585956

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/writer.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub fn value(out_writer: anytype, field: anytype, opts: CsvOpts) !void {
259259
return CsvWriteError.InvalidValueType;
260260
},
261261
.pointer => |ptr_info| switch (ptr_info.size) {
262-
.One => switch (@typeInfo(ptr_info.child)) {
262+
.one => switch (@typeInfo(ptr_info.child)) {
263263
.array,
264264
.@"enum",
265265
.@"union",
@@ -268,13 +268,13 @@ pub fn value(out_writer: anytype, field: anytype, opts: CsvOpts) !void {
268268
},
269269
else => return CsvWriteError.InvalidValueType,
270270
},
271-
.Many, .C => {
271+
.many, .c => {
272272
if (ptr_info.child == u8) {
273273
return writeCsvStr(out_writer, field, opts);
274274
}
275275
return CsvWriteError.InvalidValueType;
276276
},
277-
.Slice => {
277+
.slice => {
278278
if (ptr_info.child == u8) {
279279
return writeCsvStr(out_writer, field, opts);
280280
}

0 commit comments

Comments
 (0)