diff options
Diffstat (limited to '')
-rw-r--r-- | src/libmdsserver/hash-table.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmdsserver/hash-table.h b/src/libmdsserver/hash-table.h index f224401..9b05804 100644 --- a/src/libmdsserver/hash-table.h +++ b/src/libmdsserver/hash-table.h @@ -211,7 +211,8 @@ size_t hash_table_get(const hash_table_t* restrict this, size_t key); * @param this The hash table * @param key The key of the entry to add * @param value The value of the entry to add - * @return The previous value associated with the key, 0 if the key was not used + * @return The previous value associated with the key, 0 if the key was not used. + * 0 will also be returned on error, check the `errno` variable. */ size_t hash_table_put(hash_table_t* restrict this, size_t key, size_t value); |