Mercurial > libedl
diff src/str.c @ 5:a6ab6d9c0dac
readme: fix typos, str: remove outdated note
our allocator is actually fairly smart now :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Dec 2023 16:26:46 -0500 |
parents | c2408abb258a |
children | 0c98b46eaf73 |
line wrap: on
line diff
--- a/src/str.c Mon Dec 25 16:24:16 2023 -0500 +++ b/src/str.c Mon Dec 25 16:26:46 2023 -0500 @@ -29,7 +29,6 @@ } int EDL_internal_string_append(EDL_internal_string* str, const char* data, const size_t length) { - /* this sucks, but I'm too lazy to write anything smarter. */ { size_t capacity = 1; while (capacity < (str->size + length + 1))