diff --git a/src/core/executor.rs b/src/core/executor.rs index 19b1e42f47..2fe47555a1 100644 --- a/src/core/executor.rs +++ b/src/core/executor.rs @@ -100,7 +100,7 @@ impl Executor { /// Spawn a task on the pool, returning a future completing on task success. /// - /// If the task panic, returns `Err(())`. + /// If the task panics, returns `Err(())`. #[cfg(feature = "quickwit")] pub fn spawn_blocking( &self, diff --git a/src/query/all_query.rs b/src/query/all_query.rs index 8da90df23a..11172f9ed3 100644 --- a/src/query/all_query.rs +++ b/src/query/all_query.rs @@ -7,7 +7,7 @@ use crate::{DocId, Score}; /// Query that matches all of the documents. /// -/// All of the document get the score 1.0. +/// All of the documents get the score 1.0. #[derive(Clone, Debug)] pub struct AllQuery; diff --git a/src/query/phrase_query/phrase_query.rs b/src/query/phrase_query/phrase_query.rs index c49c012582..11321173c3 100644 --- a/src/query/phrase_query/phrase_query.rs +++ b/src/query/phrase_query/phrase_query.rs @@ -5,8 +5,8 @@ use crate::schema::{Field, IndexRecordOption, Term}; /// `PhraseQuery` matches a specific sequence of words. /// -/// For instance the phrase query for `"part time"` will match -/// the sentence +/// For instance, the phrase query for `"part time"` will match +/// the sentence: /// /// **Alan just got a part time job.** /// @@ -15,7 +15,7 @@ use crate::schema::{Field, IndexRecordOption, Term}; /// **This is my favorite part of the job.** /// /// [Slop](PhraseQuery::set_slop) allows leniency in term proximity -/// for some performance tradeof. +/// for some performance trade-off. /// /// Using a `PhraseQuery` on a field requires positions /// to be indexed for this field.