chore: Clarify some QueryBuilder comments

This commit is contained in:
Clément Renault 2019-02-03 11:12:34 +01:00
parent 8438e2202f
commit 66ae5c8161
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -136,7 +136,7 @@ where D: Deref<Target=DB>,
FI: Fn(DocumentId, &DatabaseView<D>) -> bool,
{
pub fn query(self, query: &str, range: Range<usize>) -> Vec<Document> {
// We give the filtering work to the query distinct builder,
// We delegate the filter work to the distinct query builder,
// specifying a distinct rule that has no effect.
if self.filter.is_some() {
let builder = self.with_distinct(|_, _| None as Option<()>, 1);