mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
add comment
This commit is contained in:
parent
7b4f436a30
commit
4fc3c6b07a
@ -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…
Reference in New Issue
Block a user