summaryrefslogtreecommitdiff
path: root/wk5/pset/speller
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:38:47 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:38:47 +0000
commit0e96d975b42e76d75a0a1c4c30f09c046e582f5e (patch)
treebb729f6809d6cd371334abda9bf7f0d72128cb81 /wk5/pset/speller
parent013ba49226f5cc86d29dc152241f6ee8a435def6 (diff)
Sun, Apr 28, 2024, 3:38 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-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;
}
}