diff --git a/lib/std/core/string.c3 b/lib/std/core/string.c3 index 099a82fa5..d6db44754 100644 --- a/lib/std/core/string.c3 +++ b/lib/std/core/string.c3 @@ -466,7 +466,7 @@ fn void String.free(&s, Allocator allocator = allocator::heap()) fn String String.tcopy(s) => s.copy(allocator::temp()) @inline; -fn String ZString.copy(z, Allocator allocator = allocator::temp()) +fn String ZString.copy(z, Allocator allocator = allocator::heap()) { return z.str_view().copy(allocator) @inline; }