summaryrefslogtreecommitdiff
path: root/wk5
diff options
context:
space:
mode:
Diffstat (limited to 'wk5')
-rw-r--r--wk5/pset/speller/dictionary.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c
index 597573b..c158acd 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -32,6 +32,9 @@ bool check(const char *word)
{
// check if this is the word
if (current->word == word)
+ {
+ return true;
+ }
// move on to next node
current = current->next;