Skip to content

Commit d17f294

Browse files
committed
Hashtable.h fix comments
1 parent 1f875ce commit d17f294

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/hashtable.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,11 @@ void hashtable_close(hashtable_t *hashtable);
7070
*
7171
* @hashtable: The hashtable object
7272
* @key: The key
73-
* @key: The length of key
74-
* @serial: For addition order of keys
73+
* @key_len: The length of key
7574
* @value: The value
7675
*
7776
* If a value with the given key already exists, its value is replaced
78-
* with the new value. Value is "stealed" in the sense that hashtable
77+
* with the new value. Value is "stolen" in the sense that hashtable
7978
* doesn't increment its refcount but decreases the refcount when the
8079
* value is no longer needed.
8180
*
@@ -88,7 +87,7 @@ int hashtable_set(hashtable_t *hashtable, const char *key, size_t key_len, json_
8887
*
8988
* @hashtable: The hashtable object
9089
* @key: The key
91-
* @key: The length of key
90+
* @key_len: The length of key
9291
*
9392
* Returns value if it is found, or NULL otherwise.
9493
*/
@@ -99,7 +98,7 @@ void *hashtable_get(hashtable_t *hashtable, const char *key, size_t key_len);
9998
*
10099
* @hashtable: The hashtable object
101100
* @key: The key
102-
* @key: The length of key
101+
* @key_len: The length of key
103102
*
104103
* Returns 0 on success, or -1 if the key was not found.
105104
*/
@@ -136,7 +135,7 @@ void *hashtable_iter(hashtable_t *hashtable);
136135
*
137136
* @hashtable: The hashtable object
138137
* @key: The key that the iterator should point to
139-
* @key: The length of key
138+
* @key_len: The length of key
140139
*
141140
* Like hashtable_iter() but returns an iterator pointing to a
142141
* specific key.

0 commit comments

Comments
 (0)