diff options
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index a94ad97041..e7dd4e5652 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -464,7 +464,8 @@ pub fn fieldNames(comptime T: type) *const [fields(T).len][:0]const u8 { return comptime blk: { const fieldInfos = fields(T); var names: [fieldInfos.len][:0]const u8 = undefined; - for (&names, fieldInfos) |*name, field| name.* = field.name; + // This concat can be removed with the next zig1 update. + for (&names, fieldInfos) |*name, field| name.* = field.name ++ ""; break :blk &names; }; } |
