--- a/docs/Writerside/topics/hash_map.h.md Wed Dec 31 15:25:30 2025 +0100 +++ b/docs/Writerside/topics/hash_map.h.md Wed Dec 31 16:01:08 2025 +0100 @@ -27,13 +27,12 @@ If you pass zero for the number of `buckets`, the map is initialized with a default of 16 buckets; otherwise the specified number of buckets is allocated. -The function `cxMapRehash()` allocates a new array of buckets and re-distributes all elements, -if the number of elements exceeds ¾ of the number of buckets. -Otherwise, no action is performed, and this function simply returns 0. -After rehashing, the number of buckets is at least 2½ times the number of elements. +The `cxMapRehash()` function creates a new bucket array and reassigns all elements when the element count surpasses three-quarters of the bucket count. +If this condition isn't met, the function returns 0 without making any changes. +Post-rehashing, the bucket count will be at least two and a half times the element count. > Advice if you want to create your own hash map structures: -> Calling `cxMapRehash()` on a map is only defined, when the map is based on the +> Calling `cxMapRehash()` on a map is only defined when the map is based on the > `struct cx_hash_map_s` structure. <seealso>