Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized.

This commit is contained in:
Lukas Tenbrink committed 2025-06-11 18:13:02 +02:00
1 parent 51b0379e55
commit b13a0e1834
26 files changed
+103 -98

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ String StringBuilder::as_string() const {
}
String string;
string.resize(string_length + 1);
string.resize_uninitialized(string_length + 1);
char32_t *buffer = string.ptrw();
int current_position = 0;