Skip to content

Commit a7d85bf

Browse files
committed
Fix typos in comments
Spotted during code reviews.
1 parent cbc603b commit a7d85bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

linkhash.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if SELF_TEST is defined. You can use this free for any purpose. It's in
8181
the public domain. It has no warranty.
8282
8383
You probably want to use hashlittle(). hashlittle() and hashbig()
84-
hash byte arrays. hashlittle() is is faster than hashbig() on
84+
hash byte arrays. hashlittle() is faster than hashbig() on
8585
little-endian machines. Intel and AMD are little-endian machines.
8686
On second thought, you probably want hashlittle2(), which is identical to
8787
hashlittle() except it returns two 32-bit hashes for the price of one.
@@ -440,7 +440,7 @@ static uint32_t hashlittle(const void *key, size_t length, uint32_t initval)
440440
/* clang-format on */
441441

442442
/* a simple hash function similar to what perl does for strings.
443-
* for good results, the string should not be excessivly large.
443+
* for good results, the string should not be excessively large.
444444
*/
445445
static unsigned long lh_perllike_str_hash(const void *k)
446446
{
@@ -481,7 +481,7 @@ static unsigned long lh_char_hash(const void *k)
481481
#elif defined _MSC_VER || defined __MINGW32__
482482
InterlockedCompareExchange(&random_seed, seed, -1);
483483
#else
484-
//#warning "racy random seed initializtion if used by multiple threads"
484+
//#warning "racy random seed initialization if used by multiple threads"
485485
random_seed = seed; /* potentially racy */
486486
#endif
487487
}

0 commit comments

Comments
 (0)