mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 03:55:07 +08:00
chore: fix some typos in comments
Signed-off-by: writegr <wellweek@outlook.com>
This commit is contained in:
parent
4089dd04a5
commit
ab43a8a949
@ -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\\\}"#);
|
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\"\'\"}");
|
insta::assert_display_snapshot!(p(r#"title = 'foo\x20\n\t\"\'"'"#), @"{title} = {foo \n\t\"\'\"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ We can combine the two tasks in a single batch:
|
|||||||
1. import documents X and Y
|
1. import documents X and Y
|
||||||
|
|
||||||
Processing this batch is functionally equivalent to processing the two
|
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.
|
one indexing operation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ pub type DeserrQueryParamError<C = BadRequest> = DeserrError<DeserrQueryParam, C
|
|||||||
|
|
||||||
/// A request deserialization error.
|
/// A request deserialization error.
|
||||||
///
|
///
|
||||||
/// The first generic paramater is a marker type describing the format of the request: either json (e.g. [`DeserrJson`] or [`DeserrQueryParam`]).
|
/// The first generic parameter is a marker type describing the format of the request: either json (e.g. [`DeserrJson`] or [`DeserrQueryParam`]).
|
||||||
/// The second generic parameter is the default error code for the deserialization error, in case it is not given.
|
/// The second generic parameter is the default error code for the deserialization error, in case it is not given.
|
||||||
pub struct DeserrError<Format, C: Default + ErrorCode> {
|
pub struct DeserrError<Format, C: Default + ErrorCode> {
|
||||||
pub msg: String,
|
pub msg: String,
|
||||||
|
@ -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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,7 @@ fn parse_csv_header(header: &str) -> (&str, AllowedType) {
|
|||||||
"string" => (field_name, AllowedType::String),
|
"string" => (field_name, AllowedType::String),
|
||||||
"boolean" => (field_name, AllowedType::Boolean),
|
"boolean" => (field_name, AllowedType::Boolean),
|
||||||
"number" => (field_name, AllowedType::Number),
|
"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),
|
_otherwise => (header, AllowedType::String),
|
||||||
},
|
},
|
||||||
None => (header, AllowedType::String),
|
None => (header, AllowedType::String),
|
||||||
|
@ -42,7 +42,7 @@ fn facet_number_values<'a>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Define the strategy used by the geo sort.
|
/// 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.
|
/// the point where we move from using the iterative strategy to the rtree.
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub enum Strategy {
|
pub enum Strategy {
|
||||||
|
Loading…
Reference in New Issue
Block a user