summaryrefslogtreecommitdiff
path: root/dict.c
diff options
context:
space:
mode:
authorJan-Erik Rediger <badboy@archlinux.us>2015-10-27 18:28:34 +0100
committerJan-Erik Rediger <badboy@archlinux.us>2015-10-27 18:28:34 +0100
commitdb1c46dac7f0c54310e05a682cc444b7ae287dcf (patch)
tree94441c9868ccf3680e8c6b92db0d2e06b981c87e /dict.c
parent4b3786d57edb9bfb22a0442536b0b41d9a93eb69 (diff)
parente2f6ee239c9c0cedfccee1db77c95e673fe6fe04 (diff)
Merge pull request #373 from charsyam/feature/typos
fixing typos
Diffstat (limited to 'dict.c')
-rw-r--r--dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dict.c b/dict.c
index 79b1041..e17a625 100644
--- a/dict.c
+++ b/dict.c
@@ -161,7 +161,7 @@ static int dictReplace(dict *ht, void *key, void *val) {
dictEntry *entry, auxentry;
/* Try to add the element. If the key
- * does not exists dictAdd will suceed. */
+ * does not exists dictAdd will succeed. */
if (dictAdd(ht, key, val) == DICT_OK)
return 1;
/* It already exists, get the entry */
@@ -293,7 +293,7 @@ static void dictReleaseIterator(dictIterator *iter) {
/* Expand the hash table if needed */
static int _dictExpandIfNeeded(dict *ht) {
- /* If the hash table is empty expand it to the intial size,
+ /* If the hash table is empty expand it to the initial size,
* if the table is "full" dobule its size. */
if (ht->size == 0)
return dictExpand(ht, DICT_HT_INITIAL_SIZE);