Skip to content

Commit

Permalink
Update spellchk.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kotlinsyntax authored Apr 12, 2024
1 parent e06bb31 commit 91afbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spellchk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ std::vector<std::string> spell_check(const std::string& word) {
std::unordered_map<std::string, int> suggestions;
for (const auto& correctWord : dictionary[word[0]]) {
const int distance = wf(word, correctWord);
suggestions[correctWord + " (Distance: " + std::to_string(distance) + ")"] = distance;
suggestions[correctWord] = distance;
}

std::vector<std::string> result;
Expand Down

0 comments on commit 91afbcd

Please sign in to comment.