mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
Apply review suggestions
This commit is contained in:
parent
78d9f0622d
commit
93252769af
@ -165,7 +165,7 @@ inputs described above, which come from different places:
|
|||||||
present in the newly added documents
|
present in the newly added documents
|
||||||
|
|
||||||
2. `word_pairs_db`, which is the list of word pairs from the database.
|
2. `word_pairs_db`, which is the list of word pairs from the database.
|
||||||
This list includes all elements in `new_word_pairs`** since `new_word_pairs`
|
This list includes all elements in `new_word_pairs` since `new_word_pairs`
|
||||||
was added to the database prior to calling the `WordPrefixPairProximityDocIds::execute`
|
was added to the database prior to calling the `WordPrefixPairProximityDocIds::execute`
|
||||||
function.
|
function.
|
||||||
|
|
||||||
@ -380,10 +380,10 @@ impl<'t, 'u, 'i> WordPrefixPairProximityDocids<'t, 'u, 'i> {
|
|||||||
/// 3. a closure to describe how to handle the new computed (word1, prefix, proximity) elements
|
/// 3. a closure to describe how to handle the new computed (word1, prefix, proximity) elements
|
||||||
///
|
///
|
||||||
/// For more information about what this function does, read the module documentation.
|
/// For more information about what this function does, read the module documentation.
|
||||||
fn execute_on_word_pairs_and_prefixes<Iter>(
|
fn execute_on_word_pairs_and_prefixes<I>(
|
||||||
iter: &mut Iter,
|
iter: &mut I,
|
||||||
mut next_word_pair_proximity: impl for<'a> FnMut(
|
mut next_word_pair_proximity: impl for<'a> FnMut(
|
||||||
&'a mut Iter,
|
&'a mut I,
|
||||||
) -> Result<
|
) -> Result<
|
||||||
Option<((&'a [u8], &'a [u8], u8), &'a [u8])>,
|
Option<((&'a [u8], &'a [u8], u8), &'a [u8])>,
|
||||||
>,
|
>,
|
||||||
|
Loading…
Reference in New Issue
Block a user