From 5ca163f446420c97af8a4fa37f6d0281a84bfbcf Mon Sep 17 00:00:00 2001 From: Mikkel Thestrup Date: Thu, 4 Dec 2025 21:16:10 +0100 Subject: Less cringe docs --- src/vector.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/vector.h') diff --git a/src/vector.h b/src/vector.h index 7320442..7deb8d3 100644 --- a/src/vector.h +++ b/src/vector.h @@ -2,8 +2,8 @@ * @file vector.h * @brief Dynamic array (vector) implementation. * @details This module provides a generic resizable array data structure - * that can store pointers to any data type. The vector automatically - * grows as elements are added, using a growth factor to amortize + * that can store pointers to any datatype. The vector automatically + * grows as elements are added, using a growth factor to mediate * reallocation costs. */ @@ -14,7 +14,7 @@ /** * @def VECTOR_INITIAL_CAPACITY - * @brief Initial capacity of a newly created vector. + * @brief Initial capacity of a vector. * @details The vector will be allocated with space for this many elements * when first created. This value is chosen to balance memory usage * and the number of early reallocations. @@ -26,7 +26,6 @@ * @brief Multiplicative factor for vector capacity growth. * @details When the vector reaches capacity and needs to grow, the new * capacity is calculated as (current_capacity * GROWTH_FACTOR). - * A factor of 2 provides good amortized performance. */ #define VECTOR_GROWTH_FACTOR 2 -- cgit v1.2.3-70-g09d2