Update string.c3

This commit is contained in:
Christoffer Lerno
2022-12-14 23:03:20 +01:00
parent a21236d661
commit 1a510207e8

View File

@@ -304,8 +304,8 @@ private fn void String.reserve(String* str, usz addition)
fn String String.new_concat(String a, String b, Allocator* allocator = mem::current_allocator())
{
String resultString = new_with_capacity(a.len() + b.len(), allocator);
resultString.append(a);
resultString.append(b);
return resultString;
String string = new_with_capacity(a.len() + b.len(), allocator);
string.append(a);
string.append(b);
return string;
}