summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 23:12:24 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 23:12:24 +0000
commitf3a427355582b16f56275f71749d9ee92c15b6dd (patch)
tree0377ddd2c0c7a36787ad0cef3067cf0c8a0c6caa /wk5/pset/speller/dictionary.c
parent5098d095bce9d54111455d5de8d1a2b193f8544f (diff)
Sun, Apr 28, 2024, 4:12 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-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;