diff --git a/src/hashmap.h b/src/hashmap.h index 14d8a63..976047d 100644 --- a/src/hashmap.h +++ b/src/hashmap.h @@ -32,14 +32,14 @@ struct apfl_hashmap_callbacks { void (*destroy_key) (void *opaque, void *key); // Destroy a value. Does nothing, if not provided. - void (*destroy_value)(void *opaque, void *key); + void (*destroy_value)(void *opaque, void *value); // Copies a key. Returns true on success, false on failure. - // If not provided, the bytes will be cpiled with memcpy. + // If not provided, the bytes will be copied with memcpy. bool (*copy_key) (void *opaque, void *dest, const void *src); // Copies a value. Returns true on success, false on failure. - // If not provided, the bytes will be cpiled with memcpy. + // If not provided, the bytes will be copied with memcpy. bool (*copy_value) (void *opaque, void *dest, const void *src); };