summaryrefslogtreecommitdiff
path: root/js/io.ts
diff options
context:
space:
mode:
authorbdistin <bdistin@gmail.com>2019-01-29 12:24:40 -0600
committerRyan Dahl <ry@tinyclouds.org>2019-01-29 13:24:40 -0500
commit457e65bc2f819ffda7a8192747099d62e65582bf (patch)
tree89cb6ee3bae607ba85a0cf4a214d528ad54f3e73 /js/io.ts
parentdc09c3a65d6882fc5a25d808277b6cfadde92d65 (diff)
docs/typo: readerIterator -> toAsyncIterator as exported (#1620)
Diffstat (limited to 'js/io.ts')
-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)
* }
*/