diff options
Diffstat (limited to 'wk5/pset')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index bb338b6..db74939 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -71,11 +71,10 @@ bool load(const char *dictionary) ptr->next = NULL; // hash the word to find the bucket it goes in int val = hash(word); - // put + // put new node at begining of bucket if (table(val)->next != NULL) { - char = 0; - while() + ptr->next = table(0)->next; } } |