Skip to content

Commit b81b399

Browse files
author
Veronika Matyus
committed
Rename Input & Output stream terms
1 parent e56b5c3 commit b81b399

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/examples/src/js/UpdateDoc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const updateDoc = async () => {
3636
})
3737
).result;
3838

39-
// Note: for byte response (Output Stream) use:
39+
// Note: for response byte stream use:
4040
// const documentAsStream = (
4141
// await client.getDocumentAsStream({
4242
// docId: 'example',
@@ -58,11 +58,11 @@ const updateDoc = async () => {
5858
})
5959
).result.rev;
6060

61-
// Note: for byte request (Input Stream) use:
61+
// Note: for request byte stream use:
6262
// document._rev = (
6363
// await client.postDocument({
6464
// db: exampleDbName,
65-
// document: inputStream,
65+
// document: documentAsByteStream,
6666
// })
6767
// ).result.rev;
6868

test/examples/src/ts/UpdateDoc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ const getDocParams: CloudantV1.GetDocumentParams = {
3535
db: exampleDbName,
3636
};
3737

38-
// Note: for byte response (Output Stream) use:
38+
// Note: for response byte stream use:
3939
// const getdocAsStreamParam: CloudantV1.GetDocumentAsStreamParams = {
4040
// docId: 'example',
4141
// db: exampleDbName,
4242
// };
4343
// client
4444
// .getDocumentAsStream(getdocAsStreamParam)
45-
// .then((outputStream) => {});
45+
// .then((documentAsStream) => {});
4646

4747
client
4848
.getDocument(getDocParams)
@@ -59,9 +59,9 @@ client
5959
// Update the document in the database
6060
client
6161
.postDocument({ db: exampleDbName, document: document })
62-
// Note: for byte request (Input Stream) use:
62+
// Note: for request byte stream use:
6363
// .postDocument(
64-
// {db: exampleDbName, document: documentAsStream}
64+
// {db: exampleDbName, document: documentAsByteStream}
6565
// )
6666
.then((res) => {
6767
// Keeping track with the revision number of the document object:

0 commit comments

Comments
 (0)