aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/read-file/stream.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guides/read-file/stream.md')
-rw-r--r--docs/guides/read-file/stream.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/guides/read-file/stream.md b/docs/guides/read-file/stream.md
index 6b88c3672..ac4bd9e2f 100644
--- a/docs/guides/read-file/stream.md
+++ b/docs/guides/read-file/stream.md
@@ -13,10 +13,10 @@ const stream = await file.stream();
---
-The chunks of the stream can be consumed with `for await`.
+The chunks of the stream can be consumed as an [async iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols) using `for await`.
```ts
-for await (const chunk of stream.values()) {
+for await (const chunk of stream) {
chunk; // => Uint8Array
}
```