change name

This commit is contained in:
Matthew 2026-06-27 14:17:31 +10:00
parent cf8043468d
commit fe9cc4c948

View File

@ -143,7 +143,7 @@ Alloc(string target)
} }
string string
AllocEscaped(char[] target) AllocTerminated(char[] target)
{ {
u8[] str = Alloc!(u8)(target.length+1); u8[] str = Alloc!(u8)(target.length+1);
str[0 .. target.length] = str[]; str[0 .. target.length] = str[];
@ -949,7 +949,7 @@ bool MallocCheck()
unittest unittest
{ {
{ {
string zeroed = AllocZeroed("Test"); string zeroed = AllocTerminated("Test");
assert(zeroed.ptr[4] == '\0'); assert(zeroed.ptr[4] == '\0');
} }
} }