From ab43a8a9497bf55fb958d9d01b800c2a2fa8362b Mon Sep 17 00:00:00 2001 From: writegr Date: Thu, 18 Apr 2024 14:12:52 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: writegr --- filter-parser/src/lib.rs | 2 +- index-scheduler/src/batch.rs | 2 +- meilisearch-types/src/deserr/mod.rs | 2 +- meilitool/src/main.rs | 2 +- milli/src/documents/builder.rs | 2 +- milli/src/search/new/geo_sort.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/filter-parser/src/lib.rs b/filter-parser/src/lib.rs index fa5b70606..6bfbbb024 100644 --- a/filter-parser/src/lib.rs +++ b/filter-parser/src/lib.rs @@ -568,7 +568,7 @@ pub mod tests { insta::assert_display_snapshot!(p(r"title = 'foo\\\\'"), @r#"{title} = {foo\\}"#); insta::assert_display_snapshot!(p(r"title = 'foo\\\\\\'"), @r#"{title} = {foo\\\}"#); insta::assert_display_snapshot!(p(r"title = 'foo\\\\\\\\'"), @r#"{title} = {foo\\\\}"#); - // but it also works with other sequencies + // but it also works with other sequences insta::assert_display_snapshot!(p(r#"title = 'foo\x20\n\t\"\'"'"#), @"{title} = {foo \n\t\"\'\"}"); } diff --git a/index-scheduler/src/batch.rs b/index-scheduler/src/batch.rs index 3161dc499..bc9823a01 100644 --- a/index-scheduler/src/batch.rs +++ b/index-scheduler/src/batch.rs @@ -13,7 +13,7 @@ We can combine the two tasks in a single batch: 1. import documents X and Y Processing this batch is functionally equivalent to processing the two -tasks individally, but should be much faster since we are only performing +tasks individually, but should be much faster since we are only performing one indexing operation. */ diff --git a/meilisearch-types/src/deserr/mod.rs b/meilisearch-types/src/deserr/mod.rs index 537b24574..bf1aa1da5 100644 --- a/meilisearch-types/src/deserr/mod.rs +++ b/meilisearch-types/src/deserr/mod.rs @@ -26,7 +26,7 @@ pub type DeserrQueryParamError = DeserrError { pub msg: String, diff --git a/meilitool/src/main.rs b/meilitool/src/main.rs index bace7d16b..bfcbfdd6d 100644 --- a/meilitool/src/main.rs +++ b/meilitool/src/main.rs @@ -129,7 +129,7 @@ fn clear_task_queue(db_path: PathBuf) -> anyhow::Result<()> { } } - eprintln!("Sucessfully deleted {count} content files from disk!"); + eprintln!("Successfully deleted {count} content files from disk!"); Ok(()) } diff --git a/milli/src/documents/builder.rs b/milli/src/documents/builder.rs index e5124f67f..ec4d634aa 100644 --- a/milli/src/documents/builder.rs +++ b/milli/src/documents/builder.rs @@ -203,7 +203,7 @@ fn parse_csv_header(header: &str) -> (&str, AllowedType) { "string" => (field_name, AllowedType::String), "boolean" => (field_name, AllowedType::Boolean), "number" => (field_name, AllowedType::Number), - // if the pattern isn't reconized, we keep the whole field. + // if the pattern isn't recognized, we keep the whole field. _otherwise => (header, AllowedType::String), }, None => (header, AllowedType::String), diff --git a/milli/src/search/new/geo_sort.rs b/milli/src/search/new/geo_sort.rs index 5f5ceb379..4081c9637 100644 --- a/milli/src/search/new/geo_sort.rs +++ b/milli/src/search/new/geo_sort.rs @@ -42,7 +42,7 @@ fn facet_number_values<'a>( } /// Define the strategy used by the geo sort. -/// The paramater represents the cache size, and, in the case of the Dynamic strategy, +/// The parameter represents the cache size, and, in the case of the Dynamic strategy, /// the point where we move from using the iterative strategy to the rtree. #[derive(Debug, Clone, Copy)] pub enum Strategy {