Skip to content

Commit 74c3a2d

Browse files
authored
misc: fix typos and documentation link (#995)
1 parent ad92991 commit 74c3a2d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

services/s3/API.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Amazon Simple Storage Service
44

55
## Binary Data
66

7-
Binary data (streams) are represented as an [software.aws.clientrt.content.ByteStream].
7+
Binary data (streams) are represented as an [aws.smithy.kotlin.runtime.content.ByteStream].
88

99
To supply a `ByteStream` there are several convenience functions including:
1010

@@ -15,21 +15,19 @@ val req = PutObjectRequest {
1515
// body = ByteStream.fromBytes(byteArray)
1616
// body = ByteStream.fromString("string")
1717
}
18-
1918
```
2019

2120
Consuming a `ByteStream` similarly has easy ways to consume the stream:
2221

2322
```kt
24-
s3.getObjet(req) { resp -> {
23+
s3.getObject(req) { resp -> {
2524
// resp.body is a ByteStream instance
2625
resp.body?.writeToFile(path)
2726

2827
// NOTE: both of these will consume the stream and buffer it entirely in-memory!
2928
// resp.body?.toByteArray()
3029
// resp.body?.decodeToString()
3130
}
32-
3331
```
3432

3533
See [aws.sdk.kotlin.services.s3.model.GetObjectResponse]

0 commit comments

Comments
 (0)