Skip to content

Commit 40ae79e

Browse files
committed
Fix typos in comments for Search APIs.
1 parent 5521b7b commit 40ae79e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/search/src/configuration_types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl JSONEngineMethod {
3737
#[serde(rename_all = "camelCase")]
3838
pub(crate) struct JSONEngineUrl {
3939
/// The PrePath and FilePath of the URL. May include variables for engines
40-
/// which have a variable FilePath, e.g. `{searchTerm}` for when a search
40+
/// which have a variable FilePath, e.g. `{searchTerms}` for when a search
4141
/// term is within the path of the url.
4242
pub base: Option<String>,
4343

@@ -49,7 +49,7 @@ pub(crate) struct JSONEngineUrl {
4949
pub params: Option<Vec<SearchUrlParam>>,
5050

5151
/// The name of the query parameter for the search term. Automatically
52-
/// appended to the end of the query. This may be skipped if `{searchTerm}`
52+
/// appended to the end of the query. This may be skipped if `{searchTerms}`
5353
/// is included in the base.
5454
pub search_term_param_name: Option<String>,
5555
}

components/search/src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub struct SearchUrlParam {
111111
#[derive(Debug, uniffi::Record, PartialEq, Deserialize, Clone, Default)]
112112
pub struct SearchEngineUrl {
113113
/// The PrePath and FilePath of the URL. May include variables for engines
114-
/// which have a variable FilePath, e.g. `{searchTerm}` for when a search
114+
/// which have a variable FilePath, e.g. `{searchTerms}` for when a search
115115
/// term is within the path of the url.
116116
pub base: String,
117117

@@ -123,7 +123,7 @@ pub struct SearchEngineUrl {
123123
pub params: Vec<SearchUrlParam>,
124124

125125
/// The name of the query parameter for the search term. Automatically
126-
/// appended to the end of the query. This may be skipped if `{searchTerm}`
126+
/// appended to the end of the query. This may be skipped if `{searchTerms}`
127127
/// is included in the base.
128128
pub search_term_param_name: Option<String>,
129129
}

0 commit comments

Comments
 (0)