summaryrefslogtreecommitdiff
path: root/wk5/pset
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/pset')
-rw-r--r--wk5/pset/speller/dictionary.c5
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;
}
}