add comment
This commit is contained in:
parent
7b4f436a30
commit
4fc3c6b07a
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,9 @@ fn find_best_match_for_name_impl(
|
|||
}
|
||||
}
|
||||
|
||||
// We have a tie among several candidates, try to select the best among them ignoring substrings.
|
||||
// For example, the candidates list `force_capture`, `capture`, and user inputed `forced_capture`,
|
||||
// we select `force_capture` with a extra round of edit distance calculation.
|
||||
if next_candidates.len() > 1 {
|
||||
debug_assert!(use_substring_score);
|
||||
best = find_best_match_for_name_impl(
|
||||
|
|
Loading…
Add table
Reference in a new issue