Skip to content

Commit 63a50ac

Browse files
authored
docs(java): fix typo on README (#4564)
1 parent 222b13e commit 63a50ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/algoliasearch-client-java/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)