Skip to content

Commit eed321e

Browse files
authored
Fix code samples (#720)
1 parent 4154443 commit eed321e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.code-samples.meilisearch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ reset_settings_1: |-
9191
get_synonyms_1: |-
9292
client.index('movies').getSynonyms()
9393
update_synonyms_1: |-
94-
client.index('movies').updateSynonym({
94+
client.index('movies').updateSynonyms({
9595
wolverine: ['xmen', 'logan'],
9696
logan: ['wolverine', 'xmen'],
9797
wow: ['world of warcraft']
9898
})
9999
reset_synonyms_1: |-
100-
client.index('movies').resetSynonym()
100+
client.index('movies').resetSynonyms()
101101
get_stop_words_1: |-
102102
client.index('movies').getStopWords()
103103
update_stop_words_1: |-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,11 @@ Or using the index object:
415415

416416
- Update synonyms:
417417

418-
`index.updateSynonym(synonyms: object): Promise<EnqueuedUpdate>`
418+
`index.updateSynonyms(synonyms: object): Promise<EnqueuedUpdate>`
419419

420420
- Reset synonyms:
421421

422-
`index.resetSynonym(): Promise<EnqueuedUpdate>`
422+
`index.resetSynonyms(): Promise<EnqueuedUpdate>`
423423

424424
### Stop-words <!-- omit in toc -->
425425

0 commit comments

Comments
 (0)