diff options
author | cflip <cflip@cflip.net> | 2022-12-11 12:20:23 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-12-11 12:20:23 -0700 |
commit | 836ac89c878129cd532028605480b7f10f94a48d (patch) | |
tree | ba47c2a445728a3e11405b2d66bf453465d6a7e8 | |
parent | eda69b1418531666db932f278055807a982cb7e2 (diff) |
Fix typo in function name
-rw-r--r-- | hashstrings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hashstrings.cpp b/hashstrings.cpp index 2ec1544..f7e3dcb 100644 --- a/hashstrings.cpp +++ b/hashstrings.cpp @@ -29,7 +29,7 @@ int compute_hash_code(const std::string& str) // This function checks if the hash matches for both the original string and the // same string with the first letter capitalized. -bool compare_with_case_insensivity(std::string& str, int hash_to_find) +bool compare_with_case_insensitivity(std::string& str, int hash_to_find) { int hash_code = compute_hash_code(str); if (hash_code == hash_to_find) { @@ -62,7 +62,7 @@ bool find_from_dictionary(int hash_to_find) std::string line; while (std::getline(in_file, line)) { - found |= compare_with_case_insensivity(line, hash_to_find); + found |= compare_with_case_insensitivity(line, hash_to_find); } in_file.close(); @@ -80,7 +80,7 @@ bool generate_all_strings(const std::string& prefix, int hash_to_find, int k) // Make a copy so the comparison function can safely modify the // capitalization of the string. std::string string_to_test = prefix; - return compare_with_case_insensivity(string_to_test, hash_to_find); + return compare_with_case_insensitivity(string_to_test, hash_to_find); } if (k >= MULTITHREADING_THRESHOLD) { |