diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-10 18:45:02 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-10 18:52:09 +0300 |
commit | 806b22d13093f7f90bc53849290db6b10a1cbe7e (patch) | |
tree | 212895811565586d44d2f7900a191dfb86207191 /source | |
parent | 97cc130f472fa2e5e12ae07312abae2de7d409aa (diff) |
Cleanup: typo
Committing this to the release branch, to avoid merge conflicts with an
upcoming fix.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/string_search.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/string_search.cc b/source/blender/blenlib/intern/string_search.cc index d64587b85b4..22ba1b07e9c 100644 --- a/source/blender/blenlib/intern/string_search.cc +++ b/source/blender/blenlib/intern/string_search.cc @@ -250,7 +250,7 @@ static int get_shortest_word_index_that_startswith(StringRef query, Span<bool> word_is_usable) { int best_word_size = INT32_MAX; - int bset_word_index = -1; + int best_word_index = -1; for (const int i : words.index_range()) { if (!word_is_usable[i]) { continue; @@ -258,11 +258,11 @@ static int get_shortest_word_index_that_startswith(StringRef query, StringRef word = words[i]; if (word.startswith(query)) { if (word.size() < best_word_size) { - bset_word_index = i; + best_word_index = i; } } } - return bset_word_index; + return best_word_index; } static int get_word_index_that_fuzzy_matches(StringRef query, |