Skip to content

Commit 325bb39

Browse files
bors[bot]bidoubiwa
andauthored
Merge #295
295: Fix wrongly created structures in code samples r=bidoubiwa a=bidoubiwa Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents 7e519de + dd5a4c1 commit 325bb39

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.code-samples.meilisearch.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,11 @@ document_guide_add_document_primary_key: |-
437437
438438
let task: Task = client.index("movies").add_documents(&[
439439
Movie {
440-
"reference_number": "287947".to_string(),
441-
"title": "Shazam".to_string(),
442-
"poster": "https://image.tmdb.org/t/p/w1280/xnopI5Xtky18MPhK40cZAGAOVeV.jpg".to_string(),
443-
"overview": "A boy is given the ability to become an adult superhero in times of need with a single magic word.".to_string(),
444-
"release_date": "2019-03-23".to_string()
440+
reference_number: "287947".to_string(),
441+
title: "Shazam".to_string(),
442+
poster: "https://image.tmdb.org/t/p/w1280/xnopI5Xtky18MPhK40cZAGAOVeV.jpg".to_string(),
443+
overview: "A boy is given the ability to become an adult superhero in times of need with a single magic word.".to_string(),
444+
release_date: "2019-03-23".to_string()
445445
}
446446
], Some("reference_number")).await.unwrap();
447447
getting_started_add_documents_md: |-
@@ -808,12 +808,12 @@ landing_getting_started_1: |-
808808
}
809809
810810
client.index("movies").add_documents(&[
811-
Movie { "id": "1".to_string(), "title": "Carol".to_string() },
812-
Movie { "id": "2".to_string(), "title": "Wonder Woman".to_string() },
813-
Movie { "id": "3".to_string(), "title": "Life of Pi".to_string() },
814-
Movie { "id": "4".to_string(), "title": "Mad Max: Fury Road".to_string() },
815-
Movie { "id": "5".to_string(), "title": "Moana".to_string() },
816-
Movie { "id": "6".to_string(), "title": "Philadelphia".to_string() }
811+
Movie { id: "1".to_string(), title: "Carol".to_string() },
812+
Movie { id: "2".to_string(), title: "Wonder Woman".to_string() },
813+
Movie { id: "3".to_string(), title: "Life of Pi".to_string() },
814+
Movie { id: "4".to_string(), title: "Mad Max: Fury Road".to_string() },
815+
Movie { id: "5".to_string(), title: "Moana".to_string() },
816+
Movie { id: "6".to_string(), title: "Philadelphia".to_string() }
817817
], Some("reference_number")).await.unwrap();
818818
tenant_token_guide_generate_sdk_1: |-
819819
let api_key = "B5KdX2MY2jV6EXfUs6scSfmC...";

0 commit comments

Comments
 (0)