From 530a3e2df383653da7eff50a7e09d2a6688eac21 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Mon, 19 Jun 2023 16:43:32 +0800 Subject: [PATCH] fix some typos Signed-off-by: cui fliter --- index-scheduler/src/autobatcher.rs | 4 ++-- index-scheduler/src/batch.rs | 2 +- index-scheduler/src/lib.rs | 2 +- ...stered.snap => everything_is_successfully_registered.snap} | 0 milli/src/update/index_documents/helpers/clonable_mmap.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename index-scheduler/src/snapshots/lib.rs/register/{everything_is_succesfully_registered.snap => everything_is_successfully_registered.snap} (100%) diff --git a/index-scheduler/src/autobatcher.rs b/index-scheduler/src/autobatcher.rs index d738cc5e4..386a39bb3 100644 --- a/index-scheduler/src/autobatcher.rs +++ b/index-scheduler/src/autobatcher.rs @@ -160,7 +160,7 @@ impl BatchKind { impl BatchKind { /// Returns a `ControlFlow::Break` if you must stop right now. /// The boolean tell you if an index has been created by the batched task. - /// To ease the writting of the code. `true` can be returned when you don't need to create an index + /// To ease the writing of the code. `true` can be returned when you don't need to create an index /// but false can't be returned if you needs to create an index. // TODO use an AutoBatchKind as input pub fn new( @@ -214,7 +214,7 @@ impl BatchKind { /// Returns a `ControlFlow::Break` if you must stop right now. /// The boolean tell you if an index has been created by the batched task. - /// To ease the writting of the code. `true` can be returned when you don't need to create an index + /// To ease the writing of the code. `true` can be returned when you don't need to create an index /// but false can't be returned if you needs to create an index. #[rustfmt::skip] fn accumulate(self, id: TaskId, kind: AutobatchKind, index_already_exists: bool, primary_key: Option<&str>) -> ControlFlow { diff --git a/index-scheduler/src/batch.rs b/index-scheduler/src/batch.rs index 67f70d367..985dad976 100644 --- a/index-scheduler/src/batch.rs +++ b/index-scheduler/src/batch.rs @@ -998,7 +998,7 @@ impl IndexScheduler { }() .unwrap_or_default(); - // The write transaction is directly owned and commited inside. + // The write transaction is directly owned and committed inside. match self.index_mapper.delete_index(wtxn, &index_uid) { Ok(()) => (), Err(Error::IndexNotFound(_)) if index_has_been_created => (), diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index b6a156a06..321eaf1f9 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -1785,7 +1785,7 @@ mod tests { assert_eq!(task.kind.as_kind(), k); } - snapshot!(snapshot_index_scheduler(&index_scheduler), name: "everything_is_succesfully_registered"); + snapshot!(snapshot_index_scheduler(&index_scheduler), name: "everything_is_successfully_registered"); } #[test] diff --git a/index-scheduler/src/snapshots/lib.rs/register/everything_is_succesfully_registered.snap b/index-scheduler/src/snapshots/lib.rs/register/everything_is_successfully_registered.snap similarity index 100% rename from index-scheduler/src/snapshots/lib.rs/register/everything_is_succesfully_registered.snap rename to index-scheduler/src/snapshots/lib.rs/register/everything_is_successfully_registered.snap diff --git a/milli/src/update/index_documents/helpers/clonable_mmap.rs b/milli/src/update/index_documents/helpers/clonable_mmap.rs index 1c4d78506..7cdab4df4 100644 --- a/milli/src/update/index_documents/helpers/clonable_mmap.rs +++ b/milli/src/update/index_documents/helpers/clonable_mmap.rs @@ -2,7 +2,7 @@ use std::sync::Arc; use memmap2::Mmap; -/// Wrapper around Mmap allowing to virtualy clone grenad-chunks +/// Wrapper around Mmap allowing to virtually clone grenad-chunks /// in a parallel process like the indexing. #[derive(Debug, Clone)] pub struct ClonableMmap {