Skip to content

Commit 41d1149

Browse files
committed
Improve documentation of get documents with offset
1 parent e808789 commit 41d1149

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/documents.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ impl<'a> DocumentsQuery<'a> {
144144
/// # let client = Client::new(MEILISEARCH_HOST, MEILISEARCH_API_KEY);
145145
/// let index = client.index("my_index");
146146
///
147-
/// let mut documents_query = DocumentsQuery::new(&index);
148-
///
149-
/// documents_query.with_offset(1);
147+
/// let mut documents_query = DocumentsQuery::new(&index)with_offset(1);
150148
/// ```
151149
pub fn with_offset(&mut self, offset: usize) -> &mut DocumentsQuery<'a> {
152150
self.offset = Some(offset);

0 commit comments

Comments
 (0)