diff -r db8299984bfe -r 6a842bd49fea docs/Writerside/topics/map.h.md --- a/docs/Writerside/topics/map.h.md Mon Dec 22 15:47:59 2025 +0100 +++ b/docs/Writerside/topics/map.h.md Mon Dec 22 16:12:20 2025 +0100 @@ -62,7 +62,7 @@ // Iterate through the contact list CxMapIterator iter = cxMapIterator(contacts); cx_foreach(CxMapEntry *, entry, iter) { - cxstring name = cx_strn(entry->key->data, entry->key->len); + cxstring name = cx_hash_key_as_string(entry->key); const char *phone = entry->value; printf("%" CX_PRIstr ": %s\n", CX_SFMT(name), phone); } @@ -160,8 +160,7 @@ // Almost the same iteration loop as above ... CxMapIterator iter = cxMapIterator(contacts); cx_foreach(CxMapEntry *, entry, iter) { - cxstring name = cx_strn(entry->key->data, - entry->key->len); + cxstring name = cx_hash_key_as_string(entry->key); // ... except that here we get cxmutstr* cxmutstr *phone = entry->value; printf("%" CX_PRIstr ": %" CX_PRIstr "\n",