diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 04:14:35 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 04:14:35 +0000 |
commit | 5e150e1505032d43454315754c98e0c1a088ce0d (patch) | |
tree | 7340fafab9cbe0f50eb97a44f14e285da387ed8a /wk5/pset/speller | |
parent | 73413647c211da972997c1e8ff9ca9678036b863 (diff) |
Sun, Apr 28, 2024, 9:14 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index d02bee5..cd393dc 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -49,7 +49,7 @@ unsigned int hash(const char *word) { // (sum of (letter - 'A') % 26) of a word to get a value of where to store it in the hash table int val = 0; - for (int i = 0; word[i] != /0; i++) + for (int i = 0; word[i] != ; i++) { val += (word[i] % 26); } |