From 6cf456a23eb0dd47a911fba5880b40e0000d30b8 Mon Sep 17 00:00:00 2001 From: Richard Guo Date: Tue, 19 Dec 2023 19:22:03 +0800 Subject: [PATCH v1] Fix typos in simplehash.h --- src/include/lib/simplehash.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/include/lib/simplehash.h b/src/include/lib/simplehash.h index b1a3d7f927..864cbbe3db 100644 --- a/src/include/lib/simplehash.h +++ b/src/include/lib/simplehash.h @@ -770,9 +770,8 @@ restart: } /* - * Insert the key key into the hash-table, set *found to true if the key - * already exists, false otherwise. Returns the hash-table entry in either - * case. + * Insert the key into the hash-table, set *found to true if the key already + * exists, false otherwise. Returns the hash-table entry in either case. */ SH_SCOPE SH_ELEMENT_TYPE * SH_INSERT(SH_TYPE * tb, SH_KEY_TYPE key, bool *found) @@ -783,9 +782,9 @@ SH_INSERT(SH_TYPE * tb, SH_KEY_TYPE key, bool *found) } /* - * Insert the key key into the hash-table using an already-calculated - * hash. Set *found to true if the key already exists, false - * otherwise. Returns the hash-table entry in either case. + * Insert the key into the hash-table using an already-calculated hash. Set + * *found to true if the key already exists, false otherwise. Returns the + * hash-table entry in either case. */ SH_SCOPE SH_ELEMENT_TYPE * SH_INSERT_HASH(SH_TYPE * tb, SH_KEY_TYPE key, uint32 hash, bool *found) -- 2.31.0