Skip to content

Commit

Permalink
Improve documentation of get documents with offset
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Aug 30, 2022
1 parent e808789 commit 41d1149
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/documents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ impl<'a> DocumentsQuery<'a> {
/// # let client = Client::new(MEILISEARCH_HOST, MEILISEARCH_API_KEY);
/// let index = client.index("my_index");
///
/// let mut documents_query = DocumentsQuery::new(&index);
///
/// documents_query.with_offset(1);
/// let mut documents_query = DocumentsQuery::new(&index)with_offset(1);
/// ```
pub fn with_offset(&mut self, offset: usize) -> &mut DocumentsQuery<'a> {
self.offset = Some(offset);
Expand Down

0 comments on commit 41d1149

Please sign in to comment.