summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/io.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/io.ts b/js/io.ts
index 96f356136..f7dbf3318 100644
--- a/js/io.ts
+++ b/js/io.ts
@@ -119,7 +119,7 @@ export async function copy(dst: Writer, src: Reader): Promise<number> {
/** Turns `r` into async iterator.
*
- * for await (const chunk of readerIterator(reader)) {
+ * for await (const chunk of toAsyncIterator(reader)) {
* console.log(chunk)
* }
*/