change name
This commit is contained in:
parent
cf8043468d
commit
fe9cc4c948
@ -143,7 +143,7 @@ Alloc(string target)
|
||||
}
|
||||
|
||||
string
|
||||
AllocEscaped(char[] target)
|
||||
AllocTerminated(char[] target)
|
||||
{
|
||||
u8[] str = Alloc!(u8)(target.length+1);
|
||||
str[0 .. target.length] = str[];
|
||||
@ -949,7 +949,7 @@ bool MallocCheck()
|
||||
unittest
|
||||
{
|
||||
{
|
||||
string zeroed = AllocZeroed("Test");
|
||||
string zeroed = AllocTerminated("Test");
|
||||
assert(zeroed.ptr[4] == '\0');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user