diff options
author | Daniel Sedlak | 2023-04-07 15:10:38 +0000 |
---|---|---|
committer | GitHub | 2023-04-07 15:10:38 +0000 |
commit | e856906f766aa6d58aba6f6bca9e2e1879b1629d (patch) | |
tree | 59befeebf031ab8de57df97f836bf08ccb7085f2 /helix-term/src/ui/fuzzy_match | |
parent | 1148ce1fd9941e00bd416bce1f06a987d0e7b5f2 (diff) |
Fix typos (#6643)
Diffstat (limited to 'helix-term/src/ui/fuzzy_match')
-rw-r--r-- | helix-term/src/ui/fuzzy_match/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/fuzzy_match/test.rs b/helix-term/src/ui/fuzzy_match/test.rs index 3f90ef68..5df79eeb 100644 --- a/helix-term/src/ui/fuzzy_match/test.rs +++ b/helix-term/src/ui/fuzzy_match/test.rs @@ -7,8 +7,8 @@ fn run_test<'a>(query: &str, items: &'a [&'a str]) -> Vec<String> { items .iter() .filter_map(|item| { - let (_, indicies) = query.fuzzy_indicies(item, &matcher)?; - let matched_string = indicies + let (_, indices) = query.fuzzy_indices(item, &matcher)?; + let matched_string = indices .iter() .map(|&pos| item.chars().nth(pos).unwrap()) .collect(); |