Skip to content

Commit edb1595

Browse files
bors[bot]amaihoefnerbidoubiwa
authored
Merge #435
435: Fix invalid type error in getting_started_add_documents_md r=bidoubiwa a=amaihoefner # Pull Request ## Related issue Fixes #434 ## What does this PR do? - Fix a panic caused by running sample code from the quickstart section ["Add documents"](https://docs.meilisearch.com/learn/getting_started/quick_start.html#add-documents) ## 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? Co-authored-by: amaihoefner <[email protected]> Co-authored-by: cvermand <[email protected]>
2 parents 5826bfc + e5cae47 commit edb1595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.code-samples.meilisearch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ getting_started_add_documents_md: |-
971971
```rust
972972
#[derive(Serialize, Deserialize)]
973973
struct Movie {
974-
id: String,
974+
id: i64,
975975
title: String,
976976
poster: String,
977977
overview: String,
@@ -986,7 +986,7 @@ getting_started_add_documents_md: |-
986986
```rust
987987
#[derive(Serialize, Deserialize)]
988988
struct Movie {
989-
id: String,
989+
id: i64,
990990
#[serde(flatten)]
991991
value: serde_json::Value,
992992
}

0 commit comments

Comments
 (0)