Skip to content

Commit 5eec153

Browse files
Merge #322
322: Fix code samples r=brunoocasali a=brunoocasali Fix the indentation of `update_a_key_1` sample and add missing quotes in the string definition in the `get_dump_status_1` sample. Co-authored-by: Bruno Casali <[email protected]>
2 parents 5e7924d + d45752b commit 5eec153

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.code-samples.meilisearch.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ faceted_search_walkthrough_filter_1: |-
343343
post_dump_1: |-
344344
client.create_dump
345345
get_dump_status_1: |-
346-
client.get_dump_status(20201006-053243949)
346+
client.get_dump_status('20201006-053243949')
347347
phrase_search_1: |-
348348
client.index('movies').search('"african american" horror')
349349
sorting_guide_update_sortable_attributes_1: |-
@@ -400,20 +400,20 @@ create_a_key_1: |-
400400
)
401401
update_a_key_1: |-
402402
client.update_key(
403-
'd0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4',
404-
{
405-
description: 'Manage documents: Products/Reviews API key',
406-
actions: [
407-
'documents.add',
408-
'documents.delete'
409-
],
410-
indexes: [
411-
'products',
412-
'reviews'
413-
],
414-
expires_at: '2042-04-02T00:42:42Z'
415-
}
416-
)
403+
'd0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4',
404+
{
405+
description: 'Manage documents: Products/Reviews API key',
406+
actions: [
407+
'documents.add',
408+
'documents.delete'
409+
],
410+
indexes: [
411+
'products',
412+
'reviews'
413+
],
414+
expires_at: '2042-04-02T00:42:42Z'
415+
}
416+
)
417417
delete_a_key_1: |-
418418
client.delete_key('d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4')
419419
security_guide_search_key_1: |-

0 commit comments

Comments
 (0)