Skip to content

Commit da64ad6

Browse files
bors[bot]evpeoplebidoubiwa
authored
Merge #433
433: Remove warning on doc compilation r=bidoubiwa a=evpeople # Pull Request ## Related issue Fixes #373 ## What does this PR do? - ... ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: evpeople <[email protected]> Co-authored-by: cvermand <[email protected]>
2 parents 418ee6f + 391ca65 commit da64ad6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/dumps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//!
77
//! During a [dump export](Client::create_dump), all [indexes](crate::indexes::Index) of the current instance are exported—together with their documents and settings—and saved as a single `.dump` file.
88
//!
9-
//! During a dump import, all indexes contained in the indicated `.dump` file are imported along with their associated [documents](crate::document::Document) and [settings](crate::settings::Settings).
9+
//! During a dump import, all indexes contained in the indicated `.dump` file are imported along with their associated [documents](crate::documents::Document) and [settings](crate::settings::Settings).
1010
//! Any existing [index](crate::indexes::Index) with the same uid as an index in the dump file will be overwritten.
1111
//!
1212
//! Dump imports are [performed at launch](https://docs.meilisearch.com/reference/features/configuration.html#import-dump) using an option.

src/indexes.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use serde::{de::DeserializeOwned, Deserialize, Serialize};
1111
use std::{collections::HashMap, fmt::Display, time::Duration};
1212
use time::OffsetDateTime;
1313

14-
/// An index containing [Document]s.
14+
/// A Meilisearch [index](https://docs.meilisearch.com/learn/core_concepts/indexes.html).
1515
///
1616
/// # Example
1717
///
@@ -271,7 +271,7 @@ impl Index {
271271
SearchQuery::new(self)
272272
}
273273

274-
/// Get one [Document] using its unique id.
274+
/// Get one document using its unique id.
275275
/// Serde is needed. Add `serde = {version="1.0", features=["derive"]}` in the dependencies section of your Cargo.toml.
276276
///
277277
/// # Example
@@ -377,7 +377,7 @@ impl Index {
377377
.await
378378
}
379379

380-
/// Get [Document]s by batch.
380+
/// Get documents by batch.
381381
///
382382
/// # Example
383383
///
@@ -425,7 +425,7 @@ impl Index {
425425
.await
426426
}
427427

428-
/// Get [Document]s by batch with parameters.
428+
/// Get documents by batch with parameters.
429429
/// ```
430430
/// use serde::{Serialize, Deserialize};
431431
///
@@ -480,7 +480,7 @@ impl Index {
480480
.await
481481
}
482482

483-
/// Add a list of [Document]s or replace them if they already exist.
483+
/// Add a list of documents or replace them if they already exist.
484484
///
485485
/// If you send an already existing document (same id) the **whole existing document** will be overwritten by the new document.
486486
/// Fields previously in the document not present in the new document are removed.

src/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{client::Client, errors::Error};
55

66
/// Represent a [meilisearch key](https://docs.meilisearch.com/reference/api/keys.html#returned-fields)
77
/// You can get a [Key] from the [Client::get_key] method.
8-
/// Or you can create a [Key] with the [KeyBuilder::create] or [Client::create_key] methods.
8+
/// Or you can create a [Key] with the [KeyBuilder::new] or [Client::create_key] methods.
99
#[derive(Debug, Serialize, Deserialize, Clone)]
1010
#[serde(rename_all = "camelCase")]
1111
pub struct Key {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
pub mod client;
228228
/// Module representing the [documents] structures.
229229
pub mod documents;
230-
/// Module containing the [document::Document] trait.
230+
/// Module containing the [dumps] trait.
231231
pub mod dumps;
232232
/// Module containing the [errors::Error] struct.
233233
pub mod errors;

0 commit comments

Comments
 (0)