Skip to content

Commit 3fff1fe

Browse files
author
Veronika Matyus
committed
Changes:
- Rename Input and Output stream terms - Unify variable name to documentAsByteStream
1 parent 740ae3c commit 3fff1fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/examples/src/main/java/UpdateDoc.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public static void main(String[] args) {
3939
.execute()
4040
.getResult();
4141

42-
// Note: for byte response (Output Stream) use:
43-
//InputStream resultAsInputStream =
42+
// Note: for response byte stream use:
43+
//InputStream documentAsByteStream =
4444
// client.getDocumentAsStream(documentInfoOptions)
4545
// .execute()
4646
// .getResult();
@@ -58,12 +58,12 @@ public static void main(String[] args) {
5858
.document(document)
5959
.build();
6060

61-
//Note: for byte request (Input Stream) use:
61+
//Note: for request byte stream use:
6262
//PostDocumentOptions updateDocumentOptions =
6363
// new PostDocumentOptions.Builder()
6464
// .db(exampleDbName)
6565
// .contentType("application/json")
66-
// .body(inputStream)
66+
// .body(documentAsByteStream)
6767
// .build();
6868

6969
DocumentResult updateDocumentResponse = client

0 commit comments

Comments
 (0)