From 7c61bc182f4a412d07462943e0e59162775cddd0 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 18 Aug 2024 21:38:26 -0500 Subject: [PATCH] Update: Function documentation for f_memory_array_increase(). The documentation comment needs to communicate the current behavior of (used + amount <= size). I may end up reviewing this behavior in the future. --- level_0/f_memory/c/memory/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_0/f_memory/c/memory/array.h b/level_0/f_memory/c/memory/array.h index d8037be..876b92e 100644 --- a/level_0/f_memory/c/memory/array.h +++ b/level_0/f_memory/c/memory/array.h @@ -294,7 +294,7 @@ extern "C" { #endif // _di_f_memory_array_increase_ /** - * Increase the size of the memory array by the given amount. + * Increase the size of the memory array by the given amount if and only if (used + amount > size). * * This will resize making the array larger based on the given length. * -- 1.8.3.1