Skip to content

Commit 23a277d

Browse files
author
Veronika Matyus
committed
Changes:
- Rename Input and Output stream terms - Unify variable name to documentAsByteStream
1 parent d7ee32d commit 23a277d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/src/update_doc/update_doc.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ func main() {
4444
),
4545
)
4646

47-
// Note: for byte response (Output Stream) use:
48-
// documentAsStream, getDocumentResponse, err := client.GetDocumentAsStream(
47+
// Note: for response byte stream use:
48+
// documentAsByteStream, getDocumentResponse, err := client.GetDocumentAsStream(
4949
// client.NewGetDocumentOptions(
5050
// exampleDbName,
5151
// exampleDocID,
@@ -75,10 +75,10 @@ func main() {
7575
exampleDbName,
7676
).SetDocument(document)
7777

78-
// Note: for byte request (Input Stream) use:
78+
// Note: for request byte stream use:
7979
// postDocumentOption := client.NewPostDocumentOptions(
8080
// exampleDbName,
81-
// ).SetBody(inputStream)
81+
// ).SetBody(documentAsByteStream)
8282

8383
postDocumentResult, _, err := client.PostDocument(
8484
postDocumentOption,

0 commit comments

Comments
 (0)