Rename str_ensure_space() to str_reserve()

Let's not invent our own terminology.
This commit is contained in:
2017-01-23 23:05:42 +01:00
parent 349a0fc3b1
commit 6642bdf9cd
2 changed files with 5 additions and 5 deletions

View File

@@ -199,7 +199,7 @@ test_str (void)
struct str s;
str_init (&s);
str_ensure_space (&s, MEGA);
str_reserve (&s, MEGA);
str_append_data (&s, x, sizeof x);
str_remove_slice (&s, 4, 4);
soft_assert (s.len == 4);