Skip to content

Commit 84ebc34

Browse files
algolia-botGiglium
andcommitted
docs(java): fix typo on README (generated)
algolia/api-clients-automation#4564 Co-authored-by: Migliorin Francesco Antonio <[email protected]>
1 parent c644f1b commit 84ebc34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import com.algolia.model.search.*;
5656
SearchClient client = new SearchClient("YOUR_APP_ID", "YOUR_API_KEY");
5757

5858
// Add a new record to your Algolia index
59-
client.saveObject("<YOUR_INDEX_NAME>", Map.of("objectID", "id", "test", "val"));
59+
var response = client.saveObject("<YOUR_INDEX_NAME>", Map.of("objectID", "id", "test", "val"));
6060

6161
// Poll the task status to know when it has been indexed
6262
client.waitForTask("<YOUR_INDEX_NAME>", response.getTaskID());

0 commit comments

Comments
 (0)