Skip to content

Commit

Permalink
value: fix into() for mutable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomsik committed Aug 14, 2024
1 parent 87fedb8 commit e069327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value.zig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub const Value = union(enum) {
return T.fromValue(self, arena);
}

if (comptime T == []const u8 or T == [:0]const u8) {
if (comptime util.isString(T)) {
return arena.dupeZ(u8, self.string);
}

Expand Down

0 comments on commit e069327

Please sign in to comment.