Skip to content

Commit 70c0e39

Browse files
committed
Document -1 extra return code in kh_put().
1 parent fff7075 commit 70c0e39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

khash.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ static kh_inline khint_t __ac_Wang_hash(khint_t key)
455455
@param name Name of the hash table [symbol]
456456
@param h Pointer to the hash table [khash_t(name)*]
457457
@param k Key [type of keys]
458-
@param r Extra return code: 0 if the key is present in the hash table;
458+
@param r Extra return code: -1 if the operation failed;
459+
0 if the key is present in the hash table;
459460
1 if the bucket is empty (never used); 2 if the element in
460461
the bucket has been deleted [int*]
461462
@return Iterator to the inserted element [khint_t]

0 commit comments

Comments
 (0)