--- a/docs/Writerside/topics/map.h.md Fri Oct 24 21:15:14 2025 +0200 +++ b/docs/Writerside/topics/map.h.md Sat Oct 25 21:12:59 2025 +0200 @@ -291,7 +291,7 @@ #include <cx/map.h> -size_t cxMapClone(CxMap *dst, const CxMap *src, +int cxMapClone(CxMap *dst, const CxMap *src, cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); @@ -304,8 +304,7 @@ Refer to the documentation of the [clone-function callback](allocator.h.md#clone-function) to learn how to implement it. -The function returns the number of elements successfully cloned. -If an allocation error occurs, this might be smaller than the size of the source map. +The function returns zero if and only if all clone operations were successful. > It is perfectly possible to clone items into a map of a different type. > For example, you can clone entries from a map that is just storing pointers (`CX_STORE_POINTERS`) to a map that