src/cx/map.h

changeset 1587
7156d6699410
parent 1579
0393c67556ec
--- a/src/cx/map.h	Sat Dec 13 15:16:25 2025 +0100
+++ b/src/cx/map.h	Sat Dec 13 16:27:16 2025 +0100
@@ -183,9 +183,9 @@
      * Add or overwrite an element.
      * If the @p value is @c NULL, the implementation
      * shall only allocate memory instead of adding an existing value to the map.
-     * Returns a pointer to the allocated memory or @c NULL if allocation fails.
+     * Returns a map entry where the pointer to the key is @c NULL if allocation fails.
      */
-    void *(*put)(CxMap *map, CxHashKey key, void *value);
+    CxMapEntry (*put)(CxMap *map, CxHashKey key, void *value);
 
     /**
      * Returns an element.

mercurial