Skip to content

Commit 0f58f51

Browse files
committed
Fixed doctest
Signed-off-by: carlosb1 <[email protected]>
1 parent fe3cfe1 commit 0f58f51

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/indexes.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,7 @@ impl Index {
777777
/// let movie_index = client.index("add_documents_ndjson");
778778
///
779779
/// let task = movie_index.add_documents_csv(
780-
/// r#"1,body
781-
/// 1,"doggo"
782-
/// 2,"catto""#.as_bytes(),
780+
/// "id,body\n1,\"doggo\"\n2,\"catto\"".as_bytes(),
783781
/// Some("id"),
784782
/// ).await.unwrap();
785783
/// // Meilisearch may take some time to execute the request so we are going to wait till it's completed
@@ -824,9 +822,7 @@ impl Index {
824822
/// let movie_index = client.index("update_documents_ndjson");
825823
///
826824
/// let task = movie_index.update_documents_csv(
827-
/// r#"1,body
828-
/// 1,"doggo"
829-
/// 2,"catto""#.as_bytes(),
825+
/// "id,body\n1,\"doggo\"\n2,\"catto\"".as_bytes(),
830826
/// Some("id"),
831827
/// ).await.unwrap();
832828
/// // Meilisearch may take some time to execute the request so we are going to wait till it's completed

0 commit comments

Comments
 (0)